From 394e1fe72439701bdad0e35fe2f113d4f421cdce Mon Sep 17 00:00:00 2001 From: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com> Date: Mon, 9 May 2022 17:39:41 -0500 Subject: [PATCH] fix: revert to invisible ink wells (#447) --- packages/pinball_ui/lib/src/widgets/pinball_button.dart | 4 +++- packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/pinball_ui/lib/src/widgets/pinball_button.dart b/packages/pinball_ui/lib/src/widgets/pinball_button.dart index ee9b5c54..febedf4c 100644 --- a/packages/pinball_ui/lib/src/widgets/pinball_button.dart +++ b/packages/pinball_ui/lib/src/widgets/pinball_button.dart @@ -30,8 +30,10 @@ class PinballButton extends StatelessWidget { ), ), child: Center( - child: GestureDetector( + child: InkWell( onTap: onTap, + highlightColor: PinballColors.transparent, + splashColor: 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 c122f5b3..6fe27b77 100644 --- a/packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart +++ b/packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart @@ -53,8 +53,10 @@ class PinballDpadButton extends StatelessWidget { Widget build(BuildContext context) { return Material( color: PinballColors.transparent, - child: GestureDetector( + child: InkWell( onTap: onTap, + highlightColor: PinballColors.transparent, + splashColor: PinballColors.transparent, child: Image.asset( direction.toAsset(), width: 60,