mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 12:57:24 +00:00
fix init
This commit is contained in:
@@ -48,6 +48,7 @@ class _App {
|
|||||||
init() async {
|
init() async {
|
||||||
cachePath = (await getApplicationCacheDirectory()).path;
|
cachePath = (await getApplicationCacheDirectory()).path;
|
||||||
dataPath = (await getApplicationSupportDirectory()).path;
|
dataPath = (await getApplicationSupportDirectory()).path;
|
||||||
|
if (App.isWindows) {
|
||||||
final deviceInfoPlugin = DeviceInfoPlugin();
|
final deviceInfoPlugin = DeviceInfoPlugin();
|
||||||
final deviceInfo = await deviceInfoPlugin.windowsInfo;
|
final deviceInfo = await deviceInfoPlugin.windowsInfo;
|
||||||
if (deviceInfo.majorVersion <= 6) {
|
if (deviceInfo.majorVersion <= 6) {
|
||||||
@@ -62,6 +63,7 @@ class _App {
|
|||||||
_windowsVersion = 11;
|
_windowsVersion = 11;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
final rootNavigatorKey = GlobalKey<NavigatorState>();
|
final rootNavigatorKey = GlobalKey<NavigatorState>();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user