mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 18:57:05 +08:00
Update dashboard.dart
This commit is contained in:
@@ -20,9 +20,7 @@ class Dashboard extends ConsumerWidget {
|
||||
final settings = ref.watch(settingsProvider);
|
||||
return Scaffold(
|
||||
body: SafeArea(
|
||||
child: Stack(
|
||||
children: [
|
||||
Row(
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
Column(
|
||||
children: [
|
||||
@@ -127,19 +125,19 @@ class Dashboard extends ConsumerWidget {
|
||||
)
|
||||
],
|
||||
),
|
||||
|
||||
// DashBot Overlay
|
||||
if (isDashBotVisible)
|
||||
Positioned(
|
||||
bottom: 20,
|
||||
right: 20,
|
||||
child: const DashBotOverlay(),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
floatingActionButton: settings.isDashBotEnabled
|
||||
? const DashBotFAB()
|
||||
? FloatingActionButton(
|
||||
onPressed: () => showModalBottomSheet(
|
||||
context: context,
|
||||
isScrollControlled: true,
|
||||
builder: (context) => const Padding(
|
||||
padding: EdgeInsets.all(16.0),
|
||||
child: DashBotWidget(),
|
||||
),
|
||||
),
|
||||
child: const Icon(Icons.help_outline),
|
||||
)
|
||||
: null,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user