增加主题功能

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

@@ -91,7 +91,7 @@ class _AboutPageState extends ConsumerState<AboutPage> {
child: Text(
"Telegram频道",
style: TextStyle(
color: primaryColor,
color: ref.watch(themeProvider).primaryColor,
fontSize: 16,
),
),
@@ -107,7 +107,7 @@ class _AboutPageState extends ConsumerState<AboutPage> {
child: Text(
"版本更新",
style: TextStyle(
color: primaryColor,
color: ref.watch(themeProvider).primaryColor,
fontSize: 16,
),
),
@@ -122,7 +122,7 @@ class _AboutPageState extends ConsumerState<AboutPage> {
child: Text(
"项目地址",
style: TextStyle(
color: primaryColor,
color: ref.watch(themeProvider).primaryColor,
fontSize: 16,
),
),

View File

@@ -231,7 +231,7 @@ class DependencyCell extends ConsumerWidget {
bean.status == 1
? Icon(
CupertinoIcons.checkmark_circle,
color: primaryColor,
color: ref.watch(themeProvider).primaryColor,
size: 16,
)
: (bean.status == 2
@@ -348,7 +348,7 @@ class DependencyCell extends ConsumerWidget {
child: Text(
"确定",
style: TextStyle(
color: primaryColor,
color: ref.watch(themeProvider).primaryColor,
),
),
onPressed: () {

View File

@@ -86,7 +86,7 @@ class _LoginLogPageState extends ConsumerState<LoginLogPage> with LazyLoadState<
trailing: item.status == 0
? Icon(
CupertinoIcons.checkmark_circle,
color: primaryColor,
color: ref.watch(themeProvider).primaryColor,
size: 16,
)
: const Icon(

View File

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

View File

@@ -98,7 +98,7 @@ class _ScriptDetailPageState extends ConsumerState<ScriptDetailPage> with LazyLo
child: Text(
"确定",
style: TextStyle(
color: primaryColor,
color: ref.watch(themeProvider).primaryColor,
),
),
onPressed: () async {