mirror of
https://github.com/foss42/apidash.git
synced 2025-12-03 11:27:50 +08:00
Update dashboard.dart
This commit is contained in:
@@ -20,9 +20,7 @@ class Dashboard extends ConsumerWidget {
|
|||||||
final settings = ref.watch(settingsProvider);
|
final settings = ref.watch(settingsProvider);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Stack(
|
child: Row(
|
||||||
children: [
|
|
||||||
Row(
|
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Column(
|
Column(
|
||||||
children: [
|
children: [
|
||||||
@@ -127,19 +125,19 @@ class Dashboard extends ConsumerWidget {
|
|||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
||||||
// DashBot Overlay
|
|
||||||
if (isDashBotVisible)
|
|
||||||
Positioned(
|
|
||||||
bottom: 20,
|
|
||||||
right: 20,
|
|
||||||
child: const DashBotOverlay(),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
floatingActionButton: settings.isDashBotEnabled
|
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,
|
: null,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user