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

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

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

Loading…
Cancel
Save