mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-19 18:49:28 +01:00
10 lines
259 B
Dart
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;
|
|
}
|