feat: Enable macOS build
This commit is contained in:
parent
27e6b324c0
commit
f98f87db8e
35 changed files with 1590 additions and 68 deletions
9
lib/utils/platform_infos.dart
Normal file
9
lib/utils/platform_infos.dart
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
abstract class PlatformInfos {
|
||||
static bool get isWeb => kIsWeb;
|
||||
static bool get isMobile => !kIsWeb && (Platform.isAndroid || Platform.isIOS);
|
||||
static bool get usesTouchscreen => !isMobile;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue