refactor: use gesture detector

pull/432/head
Allison Ryan 3 years ago
parent a799509f17
commit 62798e0177

@ -30,10 +30,8 @@ class PinballButton extends StatelessWidget {
), ),
), ),
child: Center( child: Center(
child: InkWell( child: GestureDetector(
onTap: onTap, onTap: onTap,
splashColor: PinballColors.transparent,
highlightColor: PinballColors.transparent,
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(
horizontal: 32, horizontal: 32,

@ -53,10 +53,8 @@ class PinballDpadButton extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Material( return Material(
color: PinballColors.transparent, color: PinballColors.transparent,
child: InkWell( child: GestureDetector(
onTap: onTap, onTap: onTap,
splashColor: PinballColors.transparent,
highlightColor: PinballColors.transparent,
child: Image.asset( child: Image.asset(
direction.toAsset(), direction.toAsset(),
width: 60, width: 60,

Loading…
Cancel
Save