fluffychat/lib/utils/platform_infos.dart
2020-09-26 21:22:49 +02:00

10 lines
259 B
Dart

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