mirror of
https://github.com/foss42/apidash.git
synced 2025-11-30 09:48:58 +08:00
feat: rearrange dashbot home buttons
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user