1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00
comunicmobile/lib/utils/flutter_utils.dart

12 lines
249 B
Dart
Raw Normal View History

2021-04-12 17:26:05 +00:00
import 'dart:io';
2021-03-14 16:44:29 +00:00
/// Flutter utilities
///
/// @author Pierre Hubert
import 'package:flutter/foundation.dart' show kIsWeb;
bool get isWeb => kIsWeb;
2021-04-12 17:26:05 +00:00
2021-04-27 07:44:11 +00:00
bool get isAndroid => !isWeb && Platform.isAndroid;
bool get isIOS => !isWeb && Platform.isIOS;