Skip to content

Commit

Permalink
Fix error universal platform
Browse files Browse the repository at this point in the history
  • Loading branch information
kghandour authored Dec 30, 2022
1 parent 14248c0 commit d5e1722
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import 'package:kg_passgen/presentation/themes/dark_theme.dart';
import 'package:kg_passgen/presentation/themes/light_theme.dart';
import 'package:kg_passgen/presentation/widgets/multi_view_listenable_builder.dart';
import 'package:window_manager/window_manager.dart';
import 'dart:io' show Platform;
import 'package:universal_platform/universal_platform.dart';


Future main() async {
Expand All @@ -31,7 +31,7 @@ Future main() async {

await Hive.openBox<General>('general');

if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) {
if (UniversalPlatform.isWindows || UniversalPlatform.isLinux || UniversalPlatform.isMacOS) {
await windowManager.ensureInitialized();

WindowOptions windowOptions = const WindowOptions(
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ dependencies:
url_launcher: ^6.1.5
crypto: ^3.0.2
window_manager: ^0.2.7
universal_platform: ^1.0.0+1

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit d5e1722

Please sign in to comment.