From f25676a594bd2a2c83be0b322edb347318b40e66 Mon Sep 17 00:00:00 2001 From: Carapacik Date: Sun, 3 Dec 2023 21:53:14 +0300 Subject: [PATCH] Add spacer --- lib/src/feature/game/widget/game_page.dart | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/src/feature/game/widget/game_page.dart b/lib/src/feature/game/widget/game_page.dart index 9830bfb..d438081 100644 --- a/lib/src/feature/game/widget/game_page.dart +++ b/lib/src/feature/game/widget/game_page.dart @@ -123,6 +123,7 @@ class GameBody extends StatelessWidget { @override Widget build(BuildContext context) { + final useSpacer = MediaQuery.sizeOf(context).height > 800; return BlocListener( listenWhen: (previous, current) => (previous.gameCompleted != current.gameCompleted && @@ -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), ], ), ),