mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 21:09:21 +00:00
12 lines
249 B
Dart
12 lines
249 B
Dart
import 'dart:io';
|
|
|
|
/// Flutter utilities
|
|
///
|
|
/// @author Pierre Hubert
|
|
import 'package:flutter/foundation.dart' show kIsWeb;
|
|
|
|
bool get isWeb => kIsWeb;
|
|
|
|
bool get isAndroid => !isWeb && Platform.isAndroid;
|
|
|
|
bool get isIOS => !isWeb && Platform.isIOS; |