opt. proj struct

This commit is contained in:
lollipopkit
2023-02-01 13:00:02 +08:00
parent 4d741ac82a
commit 04cf5b65ce
13 changed files with 50 additions and 45 deletions

View File

@@ -2,9 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 202;
static const int build = 203;
static const String engine =
"Flutter 3.7.0 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision b06b8b2710 (8 days ago) • 2023-01-23 16:55:55 -0800\nEngine • revision b24591ed32\nTools • Dart 2.19.0 • DevTools 2.20.1\n";
static const String buildAt = "2023-02-01 10:55:03.386055";
static const int modifications = 5;
static const String buildAt = "2023-02-01 12:58:12.944187";
static const int modifications = 13;
}

View File

@@ -1,24 +1,6 @@
import 'package:flutter/material.dart';
import '../../core/utils/ui.dart';
import '../../locator.dart';
import '../store/setting.dart';
final _primaryColor = locator<SettingStore>().primaryColor.listenable();
class PrimaryColor extends StatelessWidget {
final Widget Function(BuildContext context, Color primaryColor) builder;
const PrimaryColor({Key? key, required this.builder}) : super(key: key);
@override
Widget build(BuildContext context) {
return ValueListenableBuilder<int>(
builder: (context, c, child) => builder(context, Color(c)),
valueListenable: _primaryColor,
);
}
}
class DynamicColor {
/// 白天模式显示的颜色