feat: Enable macOS build

This commit is contained in:
Christian Pauly 2020-09-26 20:27:15 +02:00
commit f98f87db8e
35 changed files with 1590 additions and 68 deletions

View 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;
}