fix: update character selection dialog (#336)

pull/338/head
arturplaczek 3 years ago committed by GitHub
parent 79624f07f1
commit e3355bccbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,36 +65,40 @@ class _CharacterGrid extends StatelessWidget {
return Row( return Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Column( Expanded(
children: [ child: Column(
_Character( children: [
key: const Key('sparky_character_selection'), _Character(
character: const SparkyTheme(), key: const Key('sparky_character_selection'),
isSelected: state.isSparkySelected, character: const SparkyTheme(),
), isSelected: state.isSparkySelected,
const SizedBox(height: 6), ),
_Character( const SizedBox(height: 6),
key: const Key('android_character_selection'), _Character(
character: const AndroidTheme(), key: const Key('android_character_selection'),
isSelected: state.isAndroidSelected, character: const AndroidTheme(),
), isSelected: state.isAndroidSelected,
], ),
],
),
), ),
const SizedBox(width: 6), const SizedBox(width: 6),
Column( Expanded(
children: [ child: Column(
_Character( children: [
key: const Key('dash_character_selection'), _Character(
character: const DashTheme(), key: const Key('dash_character_selection'),
isSelected: state.isDashSelected, character: const DashTheme(),
), isSelected: state.isDashSelected,
const SizedBox(height: 6), ),
_Character( const SizedBox(height: 6),
key: const Key('dino_character_selection'), _Character(
character: const DinoTheme(), key: const Key('dino_character_selection'),
isSelected: state.isDinoSelected, character: const DinoTheme(),
), isSelected: state.isDinoSelected,
], ),
],
),
), ),
], ],
); );

Loading…
Cancel
Save