This commit is contained in:
2023-08-30 14:44:58 +08:00
parent 8c655b0fd5
commit 6884beaf3d
14 changed files with 327 additions and 33 deletions

View File

@@ -1,4 +1,6 @@
import 'dart:io' show Platform;
import 'package:flutter/foundation.dart';
bool get isDesktop => !kIsWeb && (Platform.isWindows || Platform.isLinux || Platform.isMacOS);
bool get isDesktop =>
!kIsWeb && (Platform.isWindows || Platform.isLinux || Platform.isMacOS);
bool get isWindows => Platform.isWindows;