🐛 Fix safe area on dashboard, close #206

This commit is contained in:
2025-12-21 13:37:49 +08:00
parent e6338e8a5a
commit 67a522753e

View File

@@ -99,7 +99,9 @@ class DashboardGrid extends HookConsumerWidget {
SingleChildScrollView(
padding: isWide
? const EdgeInsets.symmetric(horizontal: 24)
: const EdgeInsets.only(bottom: 64),
: EdgeInsets.only(
bottom: 64 + devicePadding.bottom,
),
scrollDirection: isWide
? Axis.horizontal
: Axis.vertical,
@@ -136,7 +138,7 @@ class _DashboardGridWide extends HookConsumerWidget {
child: Column(
spacing: 16,
children: [
CheckInWidget(margin: EdgeInsets.zero, checkInOnly: true),
CheckInWidget(margin: EdgeInsets.zero),
Card(
margin: EdgeInsets.zero,
child: FortuneGraphWidget(
@@ -190,7 +192,7 @@ class _DashboardGridNarrow extends HookConsumerWidget {
children: [
if (userInfo.value != null && userInfo.value?.activatedAt == null)
AccountUnactivatedCard(),
CheckInWidget(margin: EdgeInsets.zero, checkInOnly: true),
CheckInWidget(margin: EdgeInsets.zero),
FortuneCard(),
ConstrainedBox(
constraints: const BoxConstraints(maxHeight: 400),