File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import 'package:kg_passgen/presentation/themes/dark_theme.dart';
1717import 'package:kg_passgen/presentation/themes/light_theme.dart' ;
1818import 'package:kg_passgen/presentation/widgets/multi_view_listenable_builder.dart' ;
1919import 'package:window_manager/window_manager.dart' ;
20- import 'dart:io' show Platform ;
20+ import 'package:universal_platform/universal_platform.dart' ;
2121
2222
2323Future main () async {
@@ -31,7 +31,7 @@ Future main() async {
3131
3232 await Hive .openBox <General >('general' );
3333
34- if (Platform .isWindows || Platform .isLinux || Platform .isMacOS) {
34+ if (UniversalPlatform .isWindows || UniversalPlatform .isLinux || UniversalPlatform .isMacOS) {
3535 await windowManager.ensureInitialized ();
3636
3737 WindowOptions windowOptions = const WindowOptions (
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ dependencies:
4545 url_launcher : ^6.1.5
4646 crypto : ^3.0.2
4747 window_manager : ^0.2.7
48+ universal_platform : ^1.0.0+1
4849
4950dev_dependencies :
5051 flutter_test :
You can’t perform that action at this time.
0 commit comments