Skip to content
Snippets Groups Projects
Commit c7aa4bfc authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Fix/improve game layout

parent 5ab8c6d7
No related branches found
No related tags found
1 merge request!38Resolve "Fix/improve layout"
Pipeline #1106 passed
org.gradle.jvmargs=-Xmx1536M org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
app.versionName=0.1.6 app.versionName=0.1.7
app.versionCode=30 app.versionCode=31
...@@ -292,7 +292,7 @@ class GamePickWordPage extends StatelessWidget { ...@@ -292,7 +292,7 @@ class GamePickWordPage extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
Data _myProvider = Provider.of<Data>(context); Data _myProvider = Provider.of<Data>(context);
return Scaffold( Scaffold pageContent = Scaffold(
appBar: AppBar( appBar: AppBar(
elevation: 0, elevation: 0,
actions: <Widget>[ actions: <Widget>[
...@@ -320,5 +320,19 @@ class GamePickWordPage extends StatelessWidget { ...@@ -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,
)
)
)
);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment