Update dashboard.dart

This commit is contained in:
Ashita Prasad
2025-05-17 22:51:32 +05:30
parent 1ba6a3fa67
commit 962bf0f230

View File

@@ -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,
);
}