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 882fd7a commit 8f2c035Copy full SHA for 8f2c035
lib/main.dart
@@ -12,6 +12,7 @@ import 'constants/constants.dart';
12
import 'logic/network/request.dart';
13
import 'router/app_pages.dart';
14
import 'utils/storage_util.dart';
15
+import 'utils/utils.dart';
16
17
void main() async {
18
WidgetsFlutterBinding.ensureInitialized();
@@ -21,7 +22,7 @@ void main() async {
21
22
DeviceOrientation.portraitDown,
23
]);
24
- if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) {
25
+ if (Utils.isDesktop) {
26
await windowManager.ensureInitialized();
27
WindowOptions windowOptions = WindowOptions(
28
minimumSize: const Size(400, 700),
0 commit comments