Update Dashboard widget to fix DashBot overlay positioning with Stack

This commit is contained in:
siddu015
2025-03-23 22:34:15 +05:30
parent 225c984807
commit 1c0af6ebda

View File

@@ -18,7 +18,6 @@ class Dashboard extends ConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) { Widget build(BuildContext context, WidgetRef ref) {
final railIdx = ref.watch(navRailIndexStateProvider); final railIdx = ref.watch(navRailIndexStateProvider);
final isDashBotVisible = ref.watch(dashBotVisibilityProvider); final isDashBotVisible = ref.watch(dashBotVisibilityProvider);
return Scaffold( return Scaffold(
body: SafeArea( body: SafeArea(
child: Stack( child: Stack(
@@ -139,7 +138,7 @@ class Dashboard extends ConsumerWidget {
], ],
), ),
), ),
// Conditionally show FAB only when DashBot is not visible // TODO: Release DashBot
floatingActionButton: !isDashBotVisible ? const DashBotFAB() : null, floatingActionButton: !isDashBotVisible ? const DashBotFAB() : null,
); );
} }