mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 17:26:18 +01:00
10 lines
347 B
Dart
10 lines
347 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;
|
|
final isDesktop =
|
|
!kIsWeb && (Platform.isLinux || Platform.isMacOS || Platform.isWindows);
|