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