From 62798e0177697e59f57d56a152f1364c76bd1b4e Mon Sep 17 00:00:00 2001 From: Allison Ryan Date: Mon, 9 May 2022 07:20:12 -0500 Subject: [PATCH] refactor: use gesture detector --- packages/pinball_ui/lib/src/widgets/pinball_button.dart | 4 +--- packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/pinball_ui/lib/src/widgets/pinball_button.dart b/packages/pinball_ui/lib/src/widgets/pinball_button.dart index 1e7db7b7..ee9b5c54 100644 --- a/packages/pinball_ui/lib/src/widgets/pinball_button.dart +++ b/packages/pinball_ui/lib/src/widgets/pinball_button.dart @@ -30,10 +30,8 @@ class PinballButton extends StatelessWidget { ), ), child: Center( - child: InkWell( + child: GestureDetector( onTap: onTap, - splashColor: PinballColors.transparent, - highlightColor: PinballColors.transparent, child: Padding( padding: const EdgeInsets.symmetric( horizontal: 32, diff --git a/packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart b/packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart index 863f596d..c122f5b3 100644 --- a/packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart +++ b/packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart @@ -53,10 +53,8 @@ class PinballDpadButton extends StatelessWidget { Widget build(BuildContext context) { return Material( color: PinballColors.transparent, - child: InkWell( + child: GestureDetector( onTap: onTap, - splashColor: PinballColors.transparent, - highlightColor: PinballColors.transparent, child: Image.asset( direction.toAsset(), width: 60,