mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 10:17:47 +08:00
DashBot providers
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 settings = ref.watch(settingsProvider);
|
||||
final isDashBotEnabled = ref.watch(isDashBotEnabledStateProvider);
|
||||
return Scaffold(
|
||||
body: SafeArea(
|
||||
child: Row(
|
||||
@@ -126,7 +126,7 @@ class Dashboard extends ConsumerWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
floatingActionButton: settings.isDashBotEnabled
|
||||
floatingActionButton: isDashBotEnabled
|
||||
? FloatingActionButton(
|
||||
onPressed: () => showModalBottomSheet(
|
||||
context: context,
|
||||
|
||||
Reference in New Issue
Block a user