rustdesk/flutter/lib/native/common.dart
fufesou 9558974080
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>
2024-03-22 13:16:37 +08:00

11 lines
304 B
Dart

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;