mirror of
https://github.com/foss42/apidash.git
synced 2025-11-30 17:59:18 +08:00
Merge branch 'main' into Dashbot_v2
This commit is contained in:
@@ -17,7 +17,7 @@ class Dashboard extends ConsumerWidget {
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final railIdx = ref.watch(navRailIndexStateProvider);
|
||||
final isDashBotVisible = ref.watch(dashBotVisibilityProvider);
|
||||
final settings = ref.watch(settingsProvider);
|
||||
return Scaffold(
|
||||
body: SafeArea(
|
||||
child: Stack(
|
||||
@@ -138,8 +138,9 @@ class Dashboard extends ConsumerWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
// TODO: Release DashBot
|
||||
floatingActionButton: !isDashBotVisible ? const DashBotFAB() : null,
|
||||
floatingActionButton: settings.isDashBotEnabled
|
||||
? const DashBotFAB()
|
||||
: null,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user