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

8 lines
252 B
Dart

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);
final isAndroid = !kIsWeb && Platform.isAndroid;