feat: rearrange dashbot home buttons

This commit is contained in:
Udhay-Adithya
2025-09-24 14:23:31 +05:30
parent 4292169c90
commit 1a26380be3
3 changed files with 74 additions and 67 deletions

View File

@@ -19,6 +19,8 @@ class Dashboard extends ConsumerWidget {
final railIdx = ref.watch(navRailIndexStateProvider);
final isDashBotEnabled =
ref.watch(settingsProvider.select((value) => value.isDashBotEnabled));
final isDashBotActive = ref
.watch(dashbotWindowNotifierProvider.select((value) => value.isActive));
return Scaffold(
body: SafeArea(
child: Row(
@@ -127,7 +129,7 @@ class Dashboard extends ConsumerWidget {
],
),
),
floatingActionButton: isDashBotEnabled
floatingActionButton: isDashBotEnabled && !isDashBotActive
? FloatingActionButton(
backgroundColor: Theme.of(context).colorScheme.primaryContainer,
onPressed: () => showDashbotWindow(context, ref),