Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
dom
2025-09-12 18:12:21 +08:00
committed by GitHub
parent da17725616
commit d6bff33d29
130 changed files with 1036 additions and 834 deletions

View File

@@ -16,6 +16,11 @@ class Utils {
static const channel = MethodChannel("PiliPlus");
static final bool isMobile = Platform.isAndroid || Platform.isIOS;
static final bool isDesktop =
Platform.isWindows || Platform.isMacOS || Platform.isLinux;
static Color parseColor(String color) =>
Color(int.parse(color.replaceFirst('#', 'FF'), radix: 16));
@@ -70,7 +75,9 @@ class Utils {
String baseDirectory,
List<String> shaders,
) {
return shaders.map((shader) => path.join(baseDirectory, shader)).join(':');
return shaders
.map((shader) => path.join(baseDirectory, shader))
.join(Platform.isWindows ? ';' : ':');
}
static final numericRegex = RegExp(r'^[\d\.]+$');