refactor: remove ink well fill

pull/432/head
Allison Ryan 3 years ago
parent bac790db95
commit a799509f17

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

@ -32,6 +32,8 @@ class PinballButton extends StatelessWidget {
child: Center( child: Center(
child: InkWell( child: InkWell(
onTap: onTap, onTap: onTap,
splashColor: PinballColors.transparent,
highlightColor: PinballColors.transparent,
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(
horizontal: 32, horizontal: 32,

@ -55,6 +55,8 @@ class PinballDpadButton extends StatelessWidget {
color: PinballColors.transparent, color: PinballColors.transparent,
child: InkWell( child: InkWell(
onTap: onTap, onTap: onTap,
splashColor: PinballColors.transparent,
highlightColor: PinballColors.transparent,
child: Image.asset( child: Image.asset(
direction.toAsset(), direction.toAsset(),
width: 60, width: 60,

Loading…
Cancel
Save