mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-12-17 07:40:41 +00:00
Theme + localize
This commit is contained in:
parent
ba33b7dbd7
commit
28fd23b2d1
7 changed files with 257 additions and 96 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import 'package:aidedejeu_flutter/theme.dart';
|
||||
import 'package:aidedejeu_flutter/widgets/homepage.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
|
|
@ -8,24 +9,7 @@ class MyApp extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Haches & Dés',
|
||||
theme: ThemeData(
|
||||
primarySwatch: Colors.deepOrange,
|
||||
appBarTheme: AppBarTheme(
|
||||
color: Colors.white,
|
||||
iconTheme: IconThemeData(color: Colors.black),
|
||||
textTheme: TextTheme(
|
||||
headline6: TextStyle(fontSize: 28.0, color: Colors.black, fontWeight: FontWeight.bold, fontFamily: 'Cinzel')),
|
||||
),
|
||||
brightness: Brightness.light,
|
||||
primaryColor: Colors.lightBlue[800],
|
||||
accentColor: Colors.cyan[600],
|
||||
fontFamily: 'LinuxLibertine',
|
||||
textTheme: TextTheme(
|
||||
headline5: TextStyle(fontSize: 28.0, fontWeight: FontWeight.bold, fontFamily: 'Cinzel'),
|
||||
headline6: TextStyle(fontSize: 22.0, fontStyle: FontStyle.normal),
|
||||
bodyText2: TextStyle(fontSize: 16.0),
|
||||
),
|
||||
),
|
||||
theme: mainTheme(),
|
||||
home: HomePage(),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue