opt.: more params of editor page

This commit is contained in:
lollipopkit
2023-08-28 15:22:12 +08:00
parent a53ebb334b
commit e1284feae6
31 changed files with 149 additions and 87 deletions

View File

@@ -1,6 +1,6 @@
import 'package:flutter/widgets.dart';
import '../../../core/utils/ui.dart';
import '../../../core/extension/context.dart';
class DynamicColor {
/// 白天模式显示的颜色
@@ -11,5 +11,5 @@ class DynamicColor {
DynamicColor(this.light, this.dark);
Color resolve(BuildContext context) => isDarkMode(context) ? dark : light;
Color resolve(BuildContext context) => context.isDark ? dark : light;
}

View File

@@ -136,9 +136,12 @@ Future<void> _upload(
req.remotePath,
mode: SftpFileOpenMode.write | SftpFileOpenMode.create,
);
final writer = file.write(localFile, onProgress: (total) {
mainSendPort.send(total / localLen * 100);
},);
final writer = file.write(
localFile,
onProgress: (total) {
mainSendPort.send(total / localLen * 100);
},
);
await writer.done;
await file.close();
mainSendPort.send(watch.elapsed);

View File

@@ -2,8 +2,8 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 499;
static const String engine = "3.13.0";
static const String buildAt = "2023-08-25 18:04:51.443337";
static const int build = 501;
static const String engine = "3.13.1";
static const String buildAt = "2023-08-27 00:15:00.994465";
static const int modifications = 4;
}

View File

@@ -49,4 +49,6 @@ const participants = <GhId>{
'Ealrang',
'hange33',
'yuchen1204',
'xgzxmytx',
'wind057',
};

View File

@@ -7,6 +7,8 @@ import '../model/app/net_view.dart';
import '../res/default.dart';
class SettingStore extends PersistentStore {
Map<String, dynamic> toJson() => {for (var e in box.keys) e: box.get(e)};
StoreProperty<int> get primaryColor => property<int>(
'primaryColor',
defaultValue: 4287106639,