mirror of
https://github.com/foss42/apidash.git
synced 2025-12-03 03:17:00 +08:00
Update dashboard.dart
This commit is contained in:
@@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user