Skip to content

Commit cff39c1

Browse files
committed
Update dashboard.dart
1 parent 6e638bb commit cff39c1

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

lib/screens/dashboard.dart

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Dashboard extends ConsumerWidget {
1717
@override
1818
Widget build(BuildContext context, WidgetRef ref) {
1919
final railIdx = ref.watch(navRailIndexStateProvider);
20+
final settings = ref.watch(settingsProvider);
2021
return Scaffold(
2122
body: SafeArea(
2223
child: Row(
@@ -125,18 +126,19 @@ class Dashboard extends ConsumerWidget {
125126
],
126127
),
127128
),
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,
140142
);
141143
}
142144
}

0 commit comments

Comments
 (0)