@@ -82,18 +82,16 @@ abstract class DeerLocalizations {
8282 /// Additional delegates can be added by appending to this list in
8383 /// MaterialApp. This list does not have to be used at all if a custom list
8484 /// of delegates is preferred or required.
85- static const List <LocalizationsDelegate <dynamic >> localizationsDelegates = < LocalizationsDelegate <dynamic >> [
85+ static const List <LocalizationsDelegate <dynamic >> localizationsDelegates =
86+ < LocalizationsDelegate <dynamic >> [
8687 delegate,
8788 GlobalMaterialLocalizations .delegate,
8889 GlobalCupertinoLocalizations .delegate,
8990 GlobalWidgetsLocalizations .delegate,
9091 ];
9192
9293 /// A list of this localizations delegate's supported locales.
93- static const List <Locale > supportedLocales = < Locale > [
94- Locale ('en' ),
95- Locale ('zh' )
96- ];
94+ static const List <Locale > supportedLocales = < Locale > [Locale ('en' ), Locale ('zh' )];
9795
9896 /// Title for the application
9997 ///
@@ -220,18 +218,17 @@ class _DeerLocalizationsDelegate extends LocalizationsDelegate<DeerLocalizations
220218}
221219
222220DeerLocalizations lookupDeerLocalizations (Locale locale) {
223-
224-
225221 // Lookup logic when only language code is specified.
226222 switch (locale.languageCode) {
227- case 'en' : return DeerLocalizationsEn ();
228- case 'zh' : return DeerLocalizationsZh ();
223+ case 'en' :
224+ return DeerLocalizationsEn ();
225+ case 'zh' :
226+ return DeerLocalizationsZh ();
229227 }
230228
231229 throw FlutterError (
232- 'DeerLocalizations.delegate failed to load unsupported locale "$locale ". This is likely '
233- 'an issue with the localizations generation tool. Please file an issue '
234- 'on GitHub with a reproducible sample app and the gen-l10n configuration '
235- 'that was used.'
236- );
230+ 'DeerLocalizations.delegate failed to load unsupported locale "$locale ". This is likely '
231+ 'an issue with the localizations generation tool. Please file an issue '
232+ 'on GitHub with a reproducible sample app and the gen-l10n configuration '
233+ 'that was used.' );
237234}
0 commit comments