♻️ Better windows support
This commit is contained in:
		| @@ -181,7 +181,7 @@ class IslandApp extends HookConsumerWidget { | ||||
|     } | ||||
|  | ||||
|     useEffect(() { | ||||
|       if (!kIsWeb && Platform.isLinux) { | ||||
|       if (!kIsWeb && (Platform.isLinux || Platform.isWindows)) { | ||||
|         return null; | ||||
|       } | ||||
|  | ||||
|   | ||||
| @@ -12,7 +12,6 @@ import 'package:shelf_web_socket/shelf_web_socket.dart'; | ||||
| import 'package:web_socket_channel/web_socket_channel.dart'; | ||||
| import 'package:path/path.dart' as path; | ||||
| import 'package:win32/win32.dart'; | ||||
| import 'package:win32/winsock2.dart' as winsock2; | ||||
| import 'package:ffi/ffi.dart'; | ||||
|  | ||||
| const String kRpcLogPrefix = 'arRPC.websocket'; | ||||
|   | ||||
| @@ -546,7 +546,7 @@ packages: | ||||
|     source: hosted | ||||
|     version: "1.3.3" | ||||
|   ffi: | ||||
|     dependency: transitive | ||||
|     dependency: "direct main" | ||||
|     description: | ||||
|       name: ffi | ||||
|       sha256: "289279317b4b16eb2bb7e271abccd4bf84ec9bdcbe999e278a94b804f5630418" | ||||
|   | ||||
| @@ -148,6 +148,8 @@ dependencies: | ||||
|   shelf: ^1.4.2 | ||||
|   shelf_web_socket: ^3.0.0 | ||||
|   windows_notification: ^1.3.0 | ||||
|   win32: ^5.14.0 | ||||
|   ffi: ^2.1.4 | ||||
|  | ||||
| dev_dependencies: | ||||
|   flutter_test: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user