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