fix: Desktop images
This commit is contained in:
parent
bac6dceaaf
commit
5077e66515
9 changed files with 79 additions and 32 deletions
|
|
@ -4,6 +4,12 @@ import 'package:flutter/foundation.dart';
|
|||
|
||||
abstract class PlatformInfos {
|
||||
static bool get isWeb => kIsWeb;
|
||||
|
||||
static bool get isMobile => !kIsWeb && (Platform.isAndroid || Platform.isIOS);
|
||||
|
||||
/// For desktops which don't support ChachedNetworkImage yet
|
||||
static bool get isBetaDesktop =>
|
||||
!kIsWeb && (Platform.isWindows || Platform.isLinux);
|
||||
|
||||
static bool get usesTouchscreen => !isMobile;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue