From 349344e4336e165262f35e476a73a18e8009c0b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Harrault?= <benoit@harrault.fr> Date: Fri, 9 Apr 2021 21:11:19 +0200 Subject: [PATCH] Improve layout --- android/gradle.properties | 4 ++-- lib/main.dart | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/android/gradle.properties b/android/gradle.properties index 0cdf734..e7e19cc 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=1.1.0 -app.versionCode=3 +app.versionName=1.1.1 +app.versionCode=4 diff --git a/lib/main.dart b/lib/main.dart index e8e3e15..33fc100 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -152,13 +152,13 @@ class _MyHomePageState extends State<MyHomePage> { children: <Widget>[ Text( 'Lettre aléatoire :', - style: Theme.of(context).textTheme.headline3, + style: Theme.of(context).textTheme.headline4, ), Text( '$_randomLetter', - style: Theme.of(context).textTheme.headline4, + style: Theme.of(context).textTheme.headline2, ), - FlatButton( + RaisedButton( onPressed: _pickRandomLetter, color: Colors.orange, padding: EdgeInsets.all(10.0), @@ -171,16 +171,17 @@ class _MyHomePageState extends State<MyHomePage> { ), ], ), + SizedBox(height: 50), Column( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ Text( 'Catégorie aléatoire :', - style: Theme.of(context).textTheme.headline3, + style: Theme.of(context).textTheme.headline4, ), Text( '$_randomCategory', - style: Theme.of(context).textTheme.headline4, + style: Theme.of(context).textTheme.headline3, ), FlatButton( onPressed: _pickRandomCategory, -- GitLab