Update dashboard.dart

This commit is contained in:
Ashita Prasad
2025-05-17 17:02:26 +05:30
parent 6e638bb383
commit cff39c12e5

View File

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