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

Reduce font size in menus, fix orientation

parent 6aa45c66
Branches
Tags
1 merge request!4Resolve "Fix alignments in menus"
Pipeline #863 passed
...@@ -2,5 +2,5 @@ org.gradle.jvmargs=-Xmx1536M ...@@ -2,5 +2,5 @@ org.gradle.jvmargs=-Xmx1536M
android.enableR8=true android.enableR8=true
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
app.versionName=1.0.2 app.versionName=1.0.3
app.versionCode=3 app.versionCode=4
...@@ -26,7 +26,7 @@ class CpuLevelPage extends StatelessWidget { ...@@ -26,7 +26,7 @@ class CpuLevelPage extends StatelessWidget {
'☺️ FACILE', '☺️ FACILE',
style: Theme.of(context) style: Theme.of(context)
.textTheme .textTheme
.display2 .display1
.copyWith(color: Colors.black), .copyWith(color: Colors.black),
), ),
onPressed: () { onPressed: () {
...@@ -48,7 +48,7 @@ class CpuLevelPage extends StatelessWidget { ...@@ -48,7 +48,7 @@ class CpuLevelPage extends StatelessWidget {
'🤔 DIFFICILE', '🤔 DIFFICILE',
style: Theme.of(context) style: Theme.of(context)
.textTheme .textTheme
.display2 .display1
.copyWith(color: Colors.white), .copyWith(color: Colors.white),
), ),
onPressed: () { onPressed: () {
...@@ -70,7 +70,7 @@ class CpuLevelPage extends StatelessWidget { ...@@ -70,7 +70,7 @@ class CpuLevelPage extends StatelessWidget {
'🤯 TRES DIFFICILE', '🤯 TRES DIFFICILE',
style: Theme.of(context) style: Theme.of(context)
.textTheme .textTheme
.display2 .display1
.copyWith(color: Colors.white), .copyWith(color: Colors.white),
), ),
onPressed: () { onPressed: () {
......
...@@ -23,7 +23,7 @@ class HomePage extends StatelessWidget { ...@@ -23,7 +23,7 @@ class HomePage extends StatelessWidget {
'🧑 2 JOUEURS 🧑', '🧑 2 JOUEURS 🧑',
style: Theme.of(context) style: Theme.of(context)
.textTheme .textTheme
.display2 .display1
.copyWith(color: Colors.white), .copyWith(color: Colors.white),
), ),
onPressed: () { onPressed: () {
...@@ -43,7 +43,7 @@ class HomePage extends StatelessWidget { ...@@ -43,7 +43,7 @@ class HomePage extends StatelessWidget {
'🧑 1 JOUEUR 🤖', '🧑 1 JOUEUR 🤖',
style: Theme.of(context) style: Theme.of(context)
.textTheme .textTheme
.display2 .display1
.copyWith(color: Colors.white), .copyWith(color: Colors.white),
), ),
onPressed: () { onPressed: () {
...@@ -58,11 +58,12 @@ class HomePage extends StatelessWidget { ...@@ -58,11 +58,12 @@ class HomePage extends StatelessWidget {
), ),
FlatButton( FlatButton(
color: Colors.white, color: Colors.white,
padding: EdgeInsets.all(15),
child: Text( child: Text(
'DEMO', '🤖 DEMO 🤖',
style: Theme.of(context) style: Theme.of(context)
.textTheme .textTheme
.display2 .display1
.copyWith(color: Colors.black), .copyWith(color: Colors.black),
), ),
onPressed: () { onPressed: () {
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:puissance4/cpu_level_page.dart'; import 'package:puissance4/cpu_level_page.dart';
import 'package:puissance4/home_page.dart'; import 'package:puissance4/home_page.dart';
import 'package:puissance4/match_page.dart'; import 'package:puissance4/match_page.dart';
void main() => runApp(MyApp()); void main() {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])
.then((value) => runApp(MyApp()));
}
class MyApp extends StatelessWidget { class MyApp extends StatelessWidget {
@override @override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment