From c7aa4bfc7a6c88bb3c2035da56614feee2981331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Harrault?= <benoit@harrault.fr> Date: Sun, 9 May 2021 20:45:13 +0200 Subject: [PATCH] Fix/improve game layout --- android/gradle.properties | 4 ++-- lib/screens/game_pick_word.dart | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/android/gradle.properties b/android/gradle.properties index 8c1811e..b5327e1 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,5 +1,5 @@ org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true -app.versionName=0.1.6 -app.versionCode=30 +app.versionName=0.1.7 +app.versionCode=31 diff --git a/lib/screens/game_pick_word.dart b/lib/screens/game_pick_word.dart index 731b2bc..4dafac4 100644 --- a/lib/screens/game_pick_word.dart +++ b/lib/screens/game_pick_word.dart @@ -292,7 +292,7 @@ class GamePickWordPage extends StatelessWidget { Widget build(BuildContext context) { Data _myProvider = Provider.of<Data>(context); - return Scaffold( + Scaffold pageContent = Scaffold( appBar: AppBar( elevation: 0, actions: <Widget>[ @@ -320,5 +320,19 @@ class GamePickWordPage extends StatelessWidget { ), ), ); + + return SizedBox.expand( + child: Container( + child: FittedBox( + fit: BoxFit.contain, + alignment: Alignment.center, + child: SizedBox( + height: (MediaQuery.of(context).size.height), + width: (MediaQuery.of(context).size.width), + child: pageContent, + ) + ) + ) + ); } } -- GitLab