@@ -17,6 +17,7 @@ class Dashboard extends ConsumerWidget {
17
17
@override
18
18
Widget build (BuildContext context, WidgetRef ref) {
19
19
final railIdx = ref.watch (navRailIndexStateProvider);
20
+ final settings = ref.watch (settingsProvider);
20
21
return Scaffold (
21
22
body: SafeArea (
22
23
child: Row (
@@ -125,18 +126,19 @@ class Dashboard extends ConsumerWidget {
125
126
],
126
127
),
127
128
),
128
- // TODO: Release DashBot
129
- // floatingActionButton: FloatingActionButton(
130
- // onPressed: () => showModalBottomSheet(
131
- // context: context,
132
- // isScrollControlled: true,
133
- // builder: (context) => const Padding(
134
- // padding: EdgeInsets.all(16.0),
135
- // child: DashBotWidget(),
136
- // ),
137
- // ),
138
- // child: const Icon(Icons.help_outline),
139
- // ),
129
+ floatingActionButton: settings.isDashBotEnabled
130
+ ? FloatingActionButton (
131
+ onPressed: () => showModalBottomSheet (
132
+ context: context,
133
+ isScrollControlled: true ,
134
+ builder: (context) => const Padding (
135
+ padding: EdgeInsets .all (16.0 ),
136
+ child: DashBotWidget (),
137
+ ),
138
+ ),
139
+ child: const Icon (Icons .help_outline),
140
+ )
141
+ : null ,
140
142
);
141
143
}
142
144
}
0 commit comments