style(account): 保持账号入口首屏可用

This commit is contained in:
Zhou Weidong committed 2026-10-19 09:54:10 +08:00
1 parent 6fce24d9ec
commit 7151bc9d8b
2 files changed
+110 -57

No files matched your search

+16 -4
View File
@@ -200,14 +200,14 @@ class _MyPageState extends State<MyPage> {
List<Widget> _accountPage(AppLocalizations l10n) => [
if (widget.signedIn) _signedInRow(l10n) else _guestRow(l10n),
if (widget.signedIn) ...[
const SizedBox(height: 18),
const SizedBox(height: 8),
_wallet(l10n),
const SizedBox(height: 14),
const SizedBox(height: 4),
const AccountEntryCard(),
],
const SizedBox(height: 14),
const SizedBox(height: 4),
_menuCard(l10n),
const SizedBox(height: 18),
const SizedBox(height: 8),
Text(
l10n.preferencesHeading,
style: const TextStyle(
@@ -415,6 +415,8 @@ class _MyPageState extends State<MyPage> {
child: Column(
children: [
ListTile(
dense: true,
visualDensity: VisualDensity.compact,
leading: const Icon(
Icons.card_giftcard_rounded,
color: AppColors.blueSoft,
@@ -428,6 +430,8 @@ class _MyPageState extends State<MyPage> {
),
const Divider(height: 1, color: AppColors.outlineVariantDark),
ListTile(
dense: true,
visualDensity: VisualDensity.compact,
key: const Key('mine-notices'),
leading: const Icon(
Icons.notifications_none_rounded,
@@ -441,6 +445,8 @@ class _MyPageState extends State<MyPage> {
),
const Divider(height: 1, color: AppColors.outlineVariantDark),
ListTile(
dense: true,
visualDensity: VisualDensity.compact,
leading: const Icon(
Icons.history_rounded,
color: AppColors.blueSoft,
@@ -453,6 +459,8 @@ class _MyPageState extends State<MyPage> {
),
const Divider(height: 1, color: AppColors.outlineVariantDark),
ListTile(
dense: true,
visualDensity: VisualDensity.compact,
leading: const Icon(
Icons.favorite_outline_rounded,
color: AppColors.blueSoft,
@@ -465,6 +473,8 @@ class _MyPageState extends State<MyPage> {
),
const Divider(height: 1, color: AppColors.outlineVariantDark),
ListTile(
dense: true,
visualDensity: VisualDensity.compact,
leading: const Icon(
Icons.download_outlined,
color: AppColors.blueSoft,
@@ -477,6 +487,8 @@ class _MyPageState extends State<MyPage> {
),
const Divider(height: 1, color: AppColors.outlineVariantDark),
ListTile(
dense: true,
visualDensity: VisualDensity.compact,
leading: const Icon(
Icons.settings_rounded,
color: AppColors.blueSoft,