Skip to content

Commit

Permalink
Add spacer
Browse files Browse the repository at this point in the history
  • Loading branch information
Carapacik committed Dec 3, 2023
1 parent 19ca0e0 commit f25676a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/src/feature/game/widget/game_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class GameBody extends StatelessWidget {

@override
Widget build(BuildContext context) {
final useSpacer = MediaQuery.sizeOf(context).height > 800;
return BlocListener<GameBloc, GameState>(
listenWhen: (previous, current) =>
(previous.gameCompleted != current.gameCompleted &&
Expand Down Expand Up @@ -175,11 +176,15 @@ class GameBody extends StatelessWidget {
);
}
},
child: const SafeArea(
child: SafeArea(
child: Column(
children: [
Center(child: WordsGrid()),
Center(child: KeyboardByLanguage()),
const SizedBox(height: 12),
const Center(child: WordsGrid()),
if (useSpacer) const Spacer(),
const Center(child: KeyboardByLanguage()),
if (useSpacer) const Spacer(),
const SizedBox(height: 12),
],
),
),
Expand Down

0 comments on commit f25676a

Please sign in to comment.