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) { Widget build(BuildContext context) {
return Expanded( return Expanded(
child: Opacity( child: Opacity(
opacity: isSelected ? 1 : 0.3, opacity: isSelected ? 1 : 0.4,
child: TextButton( child: TextButton(
onPressed: () => onPressed: () =>
context.read<CharacterThemeCubit>().characterSelected(character), context.read<CharacterThemeCubit>().characterSelected(character),
style: ButtonStyle(
overlayColor: MaterialStateProperty.all(
PinballColors.transparent,
),
),
child: character.icon.image(fit: BoxFit.contain), child: character.icon.image(fit: BoxFit.contain),
), ),
), ),

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

@ -53,7 +53,7 @@ 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,
child: Image.asset( child: Image.asset(
direction.toAsset(), direction.toAsset(),

Loading…
Cancel
Save