mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-05-23 15:52:16 +00:00
New file `lib/utils/platform_utils.dart`, to stop defining isDesktop and isMobile everywhere.
6 lines
167 B
Dart
6 lines
167 B
Dart
import 'dart:io';
|
|
|
|
final bool isDesktop =
|
|
Platform.isMacOS || Platform.isLinux || Platform.isWindows;
|
|
|
|
final bool isMobile = Platform.isAndroid || Platform.isIOS;
|