File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ arb-dir: lib/l10n
2
2
template-arb-file : app_en.arb
3
3
output-localization-file : app_localizations.dart
4
4
nullable-getter : false
5
+ preferred-supported-locales : [ en ]
Original file line number Diff line number Diff line change @@ -158,21 +158,6 @@ class MyApp extends StatelessWidget {
158
158
},
159
159
localizationsDelegates: AppLocalizations .localizationsDelegates,
160
160
supportedLocales: AppLocalizations .supportedLocales,
161
-
162
- // Workaround for https://github.com/flutter/flutter/issues/100857
163
- localeResolutionCallback: (deviceLocale, supportedLocales) {
164
- if (deviceLocale != null ) {
165
- for (final supportedLocale in supportedLocales) {
166
- // Since we currently don't support any country specific locales
167
- // such as de-DE and de-AT, it's sufficient to just check it like
168
- // this. Otherwise we will need more logic with .countryCode
169
- if (supportedLocale.languageCode == deviceLocale.languageCode) {
170
- return supportedLocale;
171
- }
172
- }
173
- }
174
- return const Locale ('en' );
175
- },
176
161
),
177
162
),
178
163
);
You can’t perform that action at this time.
0 commit comments