This commit is contained in:
Alessandro Autiero
2024-05-20 17:24:00 +02:00
parent 7c2caed16c
commit 9f5590d41c
562 changed files with 3303 additions and 156787 deletions

View File

@@ -1,5 +1,8 @@
import 'dart:io';
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter/scheduler.dart';
final RegExp _winBuildRegex = RegExp(r'(?<=\(Build )(.*)(?=\))');
bool get isWin11 {
@@ -10,4 +13,7 @@ bool get isWin11 {
var intBuild = int.tryParse(result);
return intBuild != null && intBuild > 22000;
}
}
bool get isDarkMode
=> SchedulerBinding.instance.platformDispatcher.platformBrightness.isDark;