diff --git a/lib/screens/dashboard.dart b/lib/screens/dashboard.dart index 428ffaeb..29bb7907 100644 --- a/lib/screens/dashboard.dart +++ b/lib/screens/dashboard.dart @@ -17,6 +17,7 @@ class Dashboard extends ConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) { final railIdx = ref.watch(navRailIndexStateProvider); + final settings = ref.watch(settingsProvider); return Scaffold( body: SafeArea( child: Row( @@ -125,18 +126,19 @@ class Dashboard extends ConsumerWidget { ], ), ), - // TODO: Release DashBot - // floatingActionButton: FloatingActionButton( - // onPressed: () => showModalBottomSheet( - // context: context, - // isScrollControlled: true, - // builder: (context) => const Padding( - // padding: EdgeInsets.all(16.0), - // child: DashBotWidget(), - // ), - // ), - // child: const Icon(Icons.help_outline), - // ), + floatingActionButton: settings.isDashBotEnabled + ? FloatingActionButton( + onPressed: () => showModalBottomSheet( + context: context, + isScrollControlled: true, + builder: (context) => const Padding( + padding: EdgeInsets.all(16.0), + child: DashBotWidget(), + ), + ), + child: const Icon(Icons.help_outline), + ) + : null, ); } }