mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-12 18:29:10 +08:00
f535406962
Signed-off-by: fufesou <linlong1266@gmail.com>
22 lines
685 B
Dart
22 lines
685 B
Dart
import 'dart:js' as js;
|
|
import 'dart:html' as html;
|
|
// cycle imports, maybe we can improve this
|
|
import 'package:flutter_hbb/consts.dart';
|
|
|
|
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']);
|
|
|
|
final _localOs = js.context.callMethod('getByName', ['local_os', '']);
|
|
final isWebOnWindows_ = _localOs == kPeerPlatformWindows;
|
|
final isWebOnLinux_ = _localOs == kPeerPlatformLinux;
|
|
final isWebOnMacOS_ = _localOs == kPeerPlatformMacOS;
|