mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 02:57:22 +00:00
Refact. Build flutter web (#7472)
* Refact. Build flutter web Signed-off-by: fufesou <shuanglongchen@yeah.net> * Refact. Flutter web, wrap Platform.xx Signed-off-by: fufesou <shuanglongchen@yeah.net> --------- Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
10
flutter/lib/native/common.dart
Normal file
10
flutter/lib/native/common.dart
Normal file
@@ -0,0 +1,10 @@
|
||||
import 'dart:io';
|
||||
|
||||
final isAndroid_ = Platform.isAndroid;
|
||||
final isIOS_ = Platform.isIOS;
|
||||
final isWindows_ = Platform.isWindows;
|
||||
final isMacOS_ = Platform.isWindows;
|
||||
final isLinux_ = Platform.isWindows;
|
||||
final isWeb_ = false;
|
||||
|
||||
final isDesktop_ = Platform.isWindows || Platform.isMacOS || Platform.isLinux;
|
||||
Reference in New Issue
Block a user