增加主题功能

This commit is contained in:
jyuesong
2022-01-21 17:30:25 +08:00
parent 5c6f016ab6
commit b8b195b663
11 changed files with 162 additions and 153 deletions

View File

@@ -249,7 +249,7 @@ class _TaskDetailPageState extends ConsumerState<EnvDetailPage> {
child: Text(
"确定",
style: TextStyle(
color: primaryColor,
color: ref.watch(themeProvider).primaryColor,
),
),
onPressed: () async {

View File

@@ -238,11 +238,11 @@ class EnvItemCell extends StatelessWidget {
),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(5),
border: Border.all(color: primaryColor, width: 1),
border: Border.all(color: ref.watch(themeProvider).primaryColor, width: 1),
),
child: Text(
"$index",
style: TextStyle(color: primaryColor, fontSize: 12),
style: TextStyle(color: ref.watch(themeProvider).primaryColor, fontSize: 12),
),
),
const SizedBox(
@@ -332,7 +332,7 @@ class EnvItemCell extends StatelessWidget {
child: Text(
"确定",
style: TextStyle(
color: primaryColor,
color: ref.watch(themeProvider).primaryColor,
),
),
onPressed: () {