mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-19 04:55:09 +00:00
9 lines
259 B
Dart
9 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;
|
|
}
|