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: InkWell(
child: GestureDetector(
onTap: onTap,
splashColor: PinballColors.transparent,
highlightColor: PinballColors.transparent,
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: 32,

@ -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,

Loading…
Cancel
Save