mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-30 23:16:09 +00:00 
			
		
		
		
	Localization
This commit is contained in:
		
							parent
							
								
									dece242a54
								
							
						
					
					
						commit
						6f3a87ac5e
					
				
					 15 changed files with 268 additions and 56 deletions
				
			
		|  | @ -1,6 +1,8 @@ | |||
| import 'package:aidedejeu_flutter/localization.dart'; | ||||
| import 'package:aidedejeu_flutter/theme.dart'; | ||||
| import 'package:aidedejeu_flutter/widgets/homepage.dart'; | ||||
| import 'package:flutter/material.dart'; | ||||
| import 'package:flutter_localizations/flutter_localizations.dart'; | ||||
| 
 | ||||
| void main() => runApp(MyApp()); | ||||
| 
 | ||||
|  | @ -8,9 +10,20 @@ class MyApp extends StatelessWidget { | |||
|   @override | ||||
|   Widget build(BuildContext context) { | ||||
|     return MaterialApp( | ||||
|       title: 'Haches & Dés', | ||||
|       //title: 'Haches & Dés', | ||||
|       onGenerateTitle: (BuildContext context) => AppLocalizations.of(context).title, | ||||
|       localizationsDelegates: [ | ||||
|         const AppLocalizationsDelegate(), | ||||
|         GlobalMaterialLocalizations.delegate, | ||||
|         GlobalWidgetsLocalizations.delegate, | ||||
|       ], | ||||
|       supportedLocales: [ | ||||
|         const Locale('en', ''), | ||||
|         const Locale('fr', ''), | ||||
|       ], | ||||
|       theme: mainTheme(), | ||||
|       home: HomePage(), | ||||
|     ); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez