From 8b5ff842e049060b8495634e1ef8c8d6cb60b641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Harrault?= <benoit@harrault.fr> Date: Tue, 12 Oct 2021 14:11:22 +0200 Subject: [PATCH] Fix display/layout/style --- lib/cpu_level_page.dart | 6 +++--- lib/home_page.dart | 6 +++--- lib/match_page.dart | 9 ++++++--- pubspec.lock | 12 ++++++------ 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/lib/cpu_level_page.dart b/lib/cpu_level_page.dart index 05a5a71..0554af0 100644 --- a/lib/cpu_level_page.dart +++ b/lib/cpu_level_page.dart @@ -26,7 +26,7 @@ class CpuLevelPage extends StatelessWidget { 'βΊοΈ FACILE', style: Theme.of(context) .textTheme - .display1 + .headline4 .copyWith(color: Colors.black), ), onPressed: () { @@ -48,7 +48,7 @@ class CpuLevelPage extends StatelessWidget { 'π€ DIFFICILE', style: Theme.of(context) .textTheme - .display1 + .headline4 .copyWith(color: Colors.white), ), onPressed: () { @@ -70,7 +70,7 @@ class CpuLevelPage extends StatelessWidget { 'π€― TRES DIFFICILE', style: Theme.of(context) .textTheme - .display1 + .headline4 .copyWith(color: Colors.white), ), onPressed: () { diff --git a/lib/home_page.dart b/lib/home_page.dart index b1b865a..7676f7e 100644 --- a/lib/home_page.dart +++ b/lib/home_page.dart @@ -23,7 +23,7 @@ class HomePage extends StatelessWidget { 'π§ 2 JOUEURS π§', style: Theme.of(context) .textTheme - .display1 + .headline4 .copyWith(color: Colors.white), ), onPressed: () { @@ -43,7 +43,7 @@ class HomePage extends StatelessWidget { 'π§ 1 JOUEUR π€', style: Theme.of(context) .textTheme - .display1 + .headline4 .copyWith(color: Colors.white), ), onPressed: () { @@ -63,7 +63,7 @@ class HomePage extends StatelessWidget { 'π€ DEMO π€', style: Theme.of(context) .textTheme - .display1 + .headline4 .copyWith(color: Colors.black), ), onPressed: () { diff --git a/lib/match_page.dart b/lib/match_page.dart index b1ea45a..db231b4 100644 --- a/lib/match_page.dart +++ b/lib/match_page.dart @@ -98,7 +98,7 @@ class _MatchPageState extends State<MatchPage> with TickerProviderStateMixin { textAlign: TextAlign.center, style: Theme.of(context) .textTheme - .display3 + .headline6 .copyWith(color: Colors.white), ) : Column( @@ -108,7 +108,7 @@ class _MatchPageState extends State<MatchPage> with TickerProviderStateMixin { textAlign: TextAlign.center, style: Theme.of(context) .textTheme - .title + .headline5 .copyWith(color: Colors.white), ), Padding( @@ -151,7 +151,10 @@ class _MatchPageState extends State<MatchPage> with TickerProviderStateMixin { return Text( name, textAlign: TextAlign.center, - style: Theme.of(context).textTheme.title.copyWith(color: Colors.white), + style: Theme.of(context) + .textTheme + .headline5 + .copyWith(color: Colors.white), ); } diff --git a/pubspec.lock b/pubspec.lock index 9e492de..6b16bae 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.5.0" + version: "2.8.2" boolean_selector: dependency: transitive description: @@ -28,7 +28,7 @@ packages: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.1" clock: dependency: transitive description: @@ -66,14 +66,14 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.10" + version: "0.12.11" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.7.0" path: dependency: transitive description: @@ -127,7 +127,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.19" + version: "0.4.3" typed_data: dependency: transitive description: @@ -143,4 +143,4 @@ packages: source: hosted version: "2.1.0" sdks: - dart: ">=2.12.0-0.0 <3.0.0" + dart: ">=2.12.0 <3.0.0" -- GitLab