refactor: Make verification in dialogs

This commit is contained in:
Christian Pauly 2020-11-22 22:48:10 +01:00
commit 3dd15d0bf5
6 changed files with 118 additions and 150 deletions

View file

@ -5,6 +5,9 @@ import 'package:flutter/foundation.dart';
abstract class PlatformInfos {
static bool get isWeb => kIsWeb;
static bool get isCupertinoStyle =>
!kIsWeb && (Platform.isIOS || Platform.isMacOS);
static bool get isMobile => !kIsWeb && (Platform.isAndroid || Platform.isIOS);
/// For desktops which don't support ChachedNetworkImage yet