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