Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-20 16:58:42 +08:00
parent 3099bd6ca1
commit 9b5457ffc0
20 changed files with 102 additions and 109 deletions

View File

@@ -76,7 +76,7 @@ List get homeTabsConfig => [
'page': const BangumiPage(tabType: HomeTabType.bangumi),
},
{
'icon': Icon(
'icon': const Icon(
MdiIcons.theater,
size: 15,
),

View File

@@ -18,9 +18,9 @@ extension ThemeTypeExt on ThemeType {
ThemeType.system => ThemeMode.system,
};
IconData get iconData => switch (this) {
ThemeType.light => MdiIcons.weatherSunny,
ThemeType.dark => MdiIcons.weatherNight,
ThemeType.system => MdiIcons.themeLightDark,
Icon get icon => switch (this) {
ThemeType.light => const Icon(MdiIcons.weatherSunny, size: 24),
ThemeType.dark => const Icon(MdiIcons.weatherNight, size: 24),
ThemeType.system => const Icon(MdiIcons.themeLightDark, size: 24),
};
}