cake_wallet/lib/utils/device_info.dart
Godwin Asuquo 6dc4eafff4 Fix dropdown change state bug
Hide scanner for desktop
2023-02-22 18:44:49 +02:00

11 lines
No EOL
259 B
Dart

import 'dart:io';
class DeviceInfo {
DeviceInfo._();
static DeviceInfo get instance => DeviceInfo._();
bool get isMobile => Platform.isAndroid || Platform.isIOS;
bool get isDesktop => Platform.isMacOS || Platform.isWindows || Platform.isLinux;
}