mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 12:23:43 +08:00
多版本号
This commit is contained in:
parent
6dbf3f99f1
commit
2d70fca71b
@ -43,6 +43,10 @@ class AppConf {
|
|||||||
|
|
||||||
static late final WindowsDeviceInfo windowsDeviceInfo;
|
static late final WindowsDeviceInfo windowsDeviceInfo;
|
||||||
|
|
||||||
|
static String colorBackground = "#132431";
|
||||||
|
static String colorMenu = "#122D42";
|
||||||
|
static String colorMica = "#0A3142";
|
||||||
|
|
||||||
static const isMSE =
|
static const isMSE =
|
||||||
String.fromEnvironment("MSE", defaultValue: "false") == "true";
|
String.fromEnvironment("MSE", defaultValue: "false") == "true";
|
||||||
|
|
||||||
|
@ -1,47 +1,98 @@
|
|||||||
/// lastVersion : "V2.9"
|
/// lastVersion : "V2.9.9"
|
||||||
/// lastVersionCode : 13
|
/// lastVersionCode : 25
|
||||||
/// lastBetaVersion : "V2.9"
|
/// minVersionCode : 15
|
||||||
/// lastBetaVersionCode : 13
|
/// MSE_lastVersion : "V2.9.13"
|
||||||
/// minVersionCode : 13
|
/// MSE_lastVersionCode : 27
|
||||||
/// minBetaVersionCode : 13
|
/// MSE_minVersionCode : 27
|
||||||
/// p4kDownloadUrl : "https://p4k.42kit.com/Data.p4k"
|
/// p4kDownloadUrl : "https://p4k.42kit.com/Data.p4k"
|
||||||
|
/// activityColors : {"enable":true,"startTime":1700236800000,"endTime":1701360000000,"background":"","menu":"","mica":""}
|
||||||
|
|
||||||
class AppVersionData {
|
class AppVersionData {
|
||||||
AppVersionData({
|
AppVersionData({
|
||||||
this.lastVersion,
|
this.lastVersion,
|
||||||
this.lastVersionCode,
|
this.lastVersionCode,
|
||||||
this.lastBetaVersion,
|
|
||||||
this.lastBetaVersionCode,
|
|
||||||
this.minVersionCode,
|
this.minVersionCode,
|
||||||
this.minBetaVersionCode,
|
this.mSELastVersion,
|
||||||
this.p4kDownloadUrl,});
|
this.mSELastVersionCode,
|
||||||
|
this.mSEMinVersionCode,
|
||||||
|
this.p4kDownloadUrl,
|
||||||
|
this.activityColors,});
|
||||||
|
|
||||||
AppVersionData.fromJson(dynamic json) {
|
AppVersionData.fromJson(dynamic json) {
|
||||||
lastVersion = json['lastVersion'];
|
lastVersion = json['lastVersion'];
|
||||||
lastVersionCode = json['lastVersionCode'];
|
lastVersionCode = json['lastVersionCode'];
|
||||||
lastBetaVersion = json['lastBetaVersion'];
|
|
||||||
lastBetaVersionCode = json['lastBetaVersionCode'];
|
|
||||||
minVersionCode = json['minVersionCode'];
|
minVersionCode = json['minVersionCode'];
|
||||||
minBetaVersionCode = json['minBetaVersionCode'];
|
mSELastVersion = json['MSE_lastVersion'];
|
||||||
|
mSELastVersionCode = json['MSE_lastVersionCode'];
|
||||||
|
mSEMinVersionCode = json['MSE_minVersionCode'];
|
||||||
p4kDownloadUrl = json['p4kDownloadUrl'];
|
p4kDownloadUrl = json['p4kDownloadUrl'];
|
||||||
|
activityColors = json['activityColors'] != null ? ActivityColors.fromJson(json['activityColors']) : null;
|
||||||
}
|
}
|
||||||
String? lastVersion;
|
String? lastVersion;
|
||||||
num? lastVersionCode;
|
num? lastVersionCode;
|
||||||
String? lastBetaVersion;
|
|
||||||
num? lastBetaVersionCode;
|
|
||||||
num? minVersionCode;
|
num? minVersionCode;
|
||||||
num? minBetaVersionCode;
|
String? mSELastVersion;
|
||||||
|
num? mSELastVersionCode;
|
||||||
|
num? mSEMinVersionCode;
|
||||||
String? p4kDownloadUrl;
|
String? p4kDownloadUrl;
|
||||||
|
ActivityColors? activityColors;
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final map = <String, dynamic>{};
|
final map = <String, dynamic>{};
|
||||||
map['lastVersion'] = lastVersion;
|
map['lastVersion'] = lastVersion;
|
||||||
map['lastVersionCode'] = lastVersionCode;
|
map['lastVersionCode'] = lastVersionCode;
|
||||||
map['lastBetaVersion'] = lastBetaVersion;
|
|
||||||
map['lastBetaVersionCode'] = lastBetaVersionCode;
|
|
||||||
map['minVersionCode'] = minVersionCode;
|
map['minVersionCode'] = minVersionCode;
|
||||||
map['minBetaVersionCode'] = minBetaVersionCode;
|
map['MSE_lastVersion'] = mSELastVersion;
|
||||||
|
map['MSE_lastVersionCode'] = mSELastVersionCode;
|
||||||
|
map['MSE_minVersionCode'] = mSEMinVersionCode;
|
||||||
map['p4kDownloadUrl'] = p4kDownloadUrl;
|
map['p4kDownloadUrl'] = p4kDownloadUrl;
|
||||||
|
if (activityColors != null) {
|
||||||
|
map['activityColors'] = activityColors?.toJson();
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// enable : true
|
||||||
|
/// startTime : 1700236800000
|
||||||
|
/// endTime : 1701360000000
|
||||||
|
/// background : ""
|
||||||
|
/// menu : ""
|
||||||
|
/// mica : ""
|
||||||
|
|
||||||
|
class ActivityColors {
|
||||||
|
ActivityColors({
|
||||||
|
this.enable,
|
||||||
|
this.startTime,
|
||||||
|
this.endTime,
|
||||||
|
this.background,
|
||||||
|
this.menu,
|
||||||
|
this.mica,});
|
||||||
|
|
||||||
|
ActivityColors.fromJson(dynamic json) {
|
||||||
|
enable = json['enable'];
|
||||||
|
startTime = json['startTime'];
|
||||||
|
endTime = json['endTime'];
|
||||||
|
background = json['background'];
|
||||||
|
menu = json['menu'];
|
||||||
|
mica = json['mica'];
|
||||||
|
}
|
||||||
|
bool? enable;
|
||||||
|
num? startTime;
|
||||||
|
num? endTime;
|
||||||
|
String? background;
|
||||||
|
String? menu;
|
||||||
|
String? mica;
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final map = <String, dynamic>{};
|
||||||
|
map['enable'] = enable;
|
||||||
|
map['startTime'] = startTime;
|
||||||
|
map['endTime'] = endTime;
|
||||||
|
map['background'] = background;
|
||||||
|
map['menu'] = menu;
|
||||||
|
map['mica'] = mica;
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import 'package:desktop_webview_window/desktop_webview_window.dart';
|
import 'package:desktop_webview_window/desktop_webview_window.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
|
import 'package:hexcolor/hexcolor.dart';
|
||||||
import 'package:starcitizen_doctor/base/ui_model.dart';
|
import 'package:starcitizen_doctor/base/ui_model.dart';
|
||||||
import 'package:starcitizen_doctor/common/conf.dart';
|
import 'package:starcitizen_doctor/common/conf.dart';
|
||||||
import 'package:starcitizen_doctor/ui/index_ui_model.dart';
|
import 'package:starcitizen_doctor/ui/index_ui_model.dart';
|
||||||
@ -34,11 +35,11 @@ class AppUI extends BaseUI {
|
|||||||
darkTheme: FluentThemeData(
|
darkTheme: FluentThemeData(
|
||||||
brightness: Brightness.dark,
|
brightness: Brightness.dark,
|
||||||
fontFamily: "SourceHanSansCN-Regular",
|
fontFamily: "SourceHanSansCN-Regular",
|
||||||
navigationPaneTheme: const NavigationPaneThemeData(
|
navigationPaneTheme: NavigationPaneThemeData(
|
||||||
backgroundColor: Color.fromRGBO(19, 36, 49, .75),
|
backgroundColor: HexColor(AppConf.colorBackground).withOpacity(.75),
|
||||||
),
|
),
|
||||||
menuColor: const Color.fromRGBO(18, 45, 66, .95),
|
menuColor: HexColor(AppConf.colorMenu).withOpacity(.95),
|
||||||
micaBackgroundColor: const Color.fromRGBO(10, 49, 66, 1.0),
|
micaBackgroundColor: HexColor(AppConf.colorMica),
|
||||||
),
|
),
|
||||||
debugShowCheckedModeBanner: false,
|
debugShowCheckedModeBanner: false,
|
||||||
home: BaseUIContainer(
|
home: BaseUIContainer(
|
||||||
|
@ -61,6 +61,7 @@ dependencies:
|
|||||||
local_auth: ^2.1.7
|
local_auth: ^2.1.7
|
||||||
cryptography: ^2.7.0
|
cryptography: ^2.7.0
|
||||||
cryptography_flutter: ^2.3.2
|
cryptography_flutter: ^2.3.2
|
||||||
|
hexcolor: ^3.0.1
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
Loading…
Reference in New Issue
Block a user