mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
Update Dashboard widget to fix DashBot overlay positioning with Stack
This commit is contained in:
@@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user