1
0
Fork 0
mirror of https://gitlab.com/nkming2/nc-photos.git synced 2025-03-12 02:08:53 +01:00
nc-photos/lib/platform/k.dart

9 lines
252 B
Dart
Raw Normal View History

2021-04-29 17:42:44 +02:00
import 'dart:io';
import 'package:flutter/foundation.dart';
const isWeb = kIsWeb;
// Platform n/a on web, need checking kIsWeb first
final isMobile = !kIsWeb && (Platform.isAndroid || Platform.isIOS);
2021-04-29 17:42:44 +02:00
final isAndroid = !kIsWeb && Platform.isAndroid;