showTerminalBadgeProvider

This commit is contained in:
Ankit Mahato
2025-11-17 06:25:20 +05:30
parent db65c07dec
commit 6dfd8727e5
2 changed files with 16 additions and 7 deletions

View File

@@ -76,13 +76,21 @@ class Dashboard extends ConsumerWidget {
style: Theme.of(context).textTheme.labelSmall,
),
kVSpacer10,
IconButton(
isSelected: railIdx == 3,
onPressed: () {
ref.read(navRailIndexStateProvider.notifier).state = 3;
},
icon: const Icon(Icons.terminal_outlined),
selectedIcon: const Icon(Icons.terminal),
Badge(
backgroundColor: Theme.of(context).colorScheme.error,
isLabelVisible:
ref.watch(showTerminalBadgeProvider) && railIdx != 3,
child: IconButton(
isSelected: railIdx == 3,
onPressed: () {
ref.read(navRailIndexStateProvider.notifier).state =
3;
ref.read(showTerminalBadgeProvider.notifier).state =
false;
},
icon: const Icon(Icons.terminal_outlined),
selectedIcon: const Icon(Icons.terminal),
),
),
Text(
'Logs',