starwork_flutter/lib/flavors.dart

27 lines
413 B
Dart
Raw Permalink Normal View History

2025-08-28 11:27:32 +08:00
enum Flavor {
dev,
pre,
sky,
xhj,
}
class F {
static late final Flavor appFlavor;
static String get name => appFlavor.name;
static String get title {
switch (appFlavor) {
case Flavor.dev:
return '星勤-dev';
case Flavor.pre:
return '星勤-pre';
case Flavor.sky:
return '星勤-sky';
case Flavor.xhj:
return '星勤-xhj';
}
}
}