chore: remove ink well fill (#432)

* refactor: remove ink well fill

* refactor: use gesture detector
pull/437/head
Allison Ryan 3 years ago committed by GitHub
parent 1e804694ff
commit 06c29d925b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -132,10 +132,15 @@ class _Character extends StatelessWidget {
Widget build(BuildContext context) {
return Expanded(
child: Opacity(
opacity: isSelected ? 1 : 0.3,
opacity: isSelected ? 1 : 0.4,
child: TextButton(
onPressed: () =>
context.read<CharacterThemeCubit>().characterSelected(character),
style: ButtonStyle(
overlayColor: MaterialStateProperty.all(
PinballColors.transparent,
),
),
child: character.icon.image(fit: BoxFit.contain),
),
),

@ -30,7 +30,7 @@ class PinballButton extends StatelessWidget {
),
),
child: Center(
child: InkWell(
child: GestureDetector(
onTap: onTap,
child: Padding(
padding: const EdgeInsets.symmetric(

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

Loading…
Cancel
Save