File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 3
3
// found in the LICENSE file.
4
4
5
5
import 'dart:async' ;
6
- import 'dart:io' show Platform;
7
6
8
7
import 'package:flutter/foundation.dart' ;
9
8
import 'package:flutter/material.dart' ;
@@ -68,14 +67,7 @@ class GalleryOptions {
68
67
}
69
68
}
70
69
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 );
70
+ Locale get locale => _locale ?? deviceLocale;
79
71
80
72
/// Returns a text direction based on the [CustomTextDirection] setting.
81
73
/// If it is based on locale and the locale cannot be determined, returns
You can’t perform that action at this time.
0 commit comments