We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cf3b20 commit ba4ad68Copy full SHA for ba4ad68
lib/data/gallery_options.dart
@@ -68,14 +68,7 @@ class GalleryOptions {
68
}
69
70
71
- Locale get locale =>
72
- _locale ??
73
- deviceLocale ??
74
- // TODO: When deviceLocale can be obtained on desktop, this won't be necessary
75
- // https://github.com/flutter/flutter/issues/45152
76
- (!kIsWeb && (Platform.isMacOS || Platform.isWindows || Platform.isLinux)
77
- ? const Locale('en', 'US')
78
- : null);
+ Locale get locale => _locale ?? deviceLocale;
79
80
/// Returns a text direction based on the [CustomTextDirection] setting.
81
/// If it is based on locale and the locale cannot be determined, returns
0 commit comments