初始化项目

This commit is contained in:
wyf
2025-04-11 08:47:46 +08:00
parent e0e1055d65
commit 9396f18d09
199 changed files with 6516 additions and 216 deletions

View File

@@ -0,0 +1,18 @@
import 'package:ef/ef.dart';
import 'package:flutter/material.dart';
import 'package:vbvs_app/model/CustomThemeColor.dart';
class ThemeController extends GetControllerEx {
//todo 数据库查询的颜色等于这个
CustomThemeColor currentColor = CustomThemeColor.light;
ThemeData currentTheme = ThemeData();
void changeTheme(CustomThemeColor color) {
currentColor = color;
currentTheme = ThemeData(
primaryColor: color.sc1,
scaffoldBackgroundColor: color.sc2,
);
update();
}
}