1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-31 07:26:09 +00:00

Localization

This commit is contained in:
Yan Maniez 2020-03-02 17:46:30 +01:00
parent 6f3a87ac5e
commit 622b6a3196
9 changed files with 218 additions and 60 deletions

View file

@ -11,7 +11,8 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
//title: 'Haches & Dés',
onGenerateTitle: (BuildContext context) => AppLocalizations.of(context).title,
onGenerateTitle: (BuildContext context) =>
AppLocalizations.of(context).app_title,
localizationsDelegates: [
const AppLocalizationsDelegate(),
GlobalMaterialLocalizations.delegate,
@ -26,4 +27,3 @@ class MyApp extends StatelessWidget {
);
}
}