mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-24 12:24:07 +08:00
6e44a91d0b
* Refact. Flutter web desktop Signed-off-by: fufesou <shuanglongchen@yeah.net> * Flutter web, prevent default context menu Signed-off-by: fufesou <shuanglongchen@yeah.net> --------- Signed-off-by: fufesou <shuanglongchen@yeah.net>
14 lines
333 B
Dart
14 lines
333 B
Dart
import 'dart:js' as js;
|
|
|
|
final isAndroid_ = false;
|
|
final isIOS_ = false;
|
|
final isWindows_ = false;
|
|
final isMacOS_ = false;
|
|
final isLinux_ = false;
|
|
final isWeb_ = true;
|
|
final isWebDesktop_ = !js.context.callMethod('isMobile');
|
|
|
|
final isDesktop_ = false;
|
|
|
|
String get screenInfo_ => js.context.callMethod('getByName', ['screen_info']);
|