mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
opt. proj struct
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
/// 白天模式显示的颜色
|
||||
|
||||
Reference in New Issue
Block a user