This commit is contained in:
2023-08-30 15:55:06 +08:00
parent 6884beaf3d
commit 4db836f750
2 changed files with 6 additions and 1 deletions

View File

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