12345678910111213141516171819202122 |
- 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;
|