File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 54
54
</array >
55
55
<key >UIViewControllerBasedStatusBarAppearance </key >
56
56
<false />
57
+ <key >CADisableMinimumFrameDurationOnPhone </key >
58
+ <true />
57
59
</dict >
58
60
</plist >
Original file line number Diff line number Diff line change @@ -49,11 +49,6 @@ class MyApp extends StatelessWidget {
49
49
GlobalMaterialLocalizations .delegate,
50
50
GlobalCupertinoLocalizations .delegate,
51
51
],
52
- supportedLocales: const < Locale > [
53
- Locale ('zh' ), // Chinese
54
- // Locale('iw'), // Hebrew
55
- ],
56
- locale: const Locale ('zh' ),
57
52
);
58
53
}
59
54
}
Original file line number Diff line number Diff line change @@ -23,9 +23,10 @@ class _SplashPageState extends State<SplashPage> {
23
23
}
24
24
25
25
Future <void > init () async {
26
- await PackageInfo .fromPlatform ()
27
- .then ((PackageInfo p) => packageVersion = p.version)
28
- .catchError ((Object _) {});
26
+ try {
27
+ final PackageInfo info = await PackageInfo .fromPlatform ();
28
+ packageVersion = info.version;
29
+ } catch (_) {}
29
30
await Future <void >.delayed (const Duration (seconds: 1 ));
30
31
if (mounted) {
31
32
Navigator .of (context).pushReplacement (
You can’t perform that action at this time.
0 commit comments