opt: 调整红点颜色为primary,降低刺激性

This commit is contained in:
orz12
2024-01-26 23:08:59 +08:00
parent 283262c58e
commit adf8301a79

View File

@@ -128,6 +128,11 @@ class _MainAppState extends State<MainApp> with SingleTickerProviderStateMixin {
..._mainController.navigationBars.map((e) {
return NavigationDestination(
icon: Badge(
backgroundColor:
Theme.of(context).colorScheme.primary,
textColor: Theme.of(context)
.colorScheme
.onInverseSurface,
label: Text(e['count'].toString()),
padding: const EdgeInsets.fromLTRB(6, 0, 6, 0),
isLabelVisible: e['count'] > 0,
@@ -149,6 +154,11 @@ class _MainAppState extends State<MainApp> with SingleTickerProviderStateMixin {
..._mainController.navigationBars.map((e) {
return BottomNavigationBarItem(
icon: Badge(
backgroundColor:
Theme.of(context).colorScheme.primary,
textColor: Theme.of(context)
.colorScheme
.onInverseSurface,
label: Text(e['count'].toString()),
padding: const EdgeInsets.fromLTRB(6, 0, 6, 0),
isLabelVisible: e['count'] > 0,