fix(home): 放大搜索栏右侧图标
This commit is contained in:
1 parent
f4e5af19fe
commit
8feede1763
4 files changed
+29
-8
No files matched your search
@@ -142,6 +142,7 @@ class HomeGridHeader extends StatelessWidget {
|
||||
const SizedBox(width: AppDimens.spaceSm),
|
||||
_headerAction(
|
||||
key: const Key('home-vip-entry'),
|
||||
frameKey: const Key('home-vip-icon-frame'),
|
||||
icon: Icons.workspace_premium_outlined,
|
||||
color: AppColors.homeCrownGold,
|
||||
tooltip: l10n.vipMembership,
|
||||
@@ -150,6 +151,7 @@ class HomeGridHeader extends StatelessWidget {
|
||||
const SizedBox(width: AppDimens.homeActionGap),
|
||||
_headerAction(
|
||||
key: const Key('home-wallet-entry'),
|
||||
frameKey: const Key('home-wallet-icon-frame'),
|
||||
icon: Icons.card_giftcard_rounded,
|
||||
color: AppColors.homeGiftPink,
|
||||
tooltip: l10n.wallet,
|
||||
@@ -163,6 +165,7 @@ class HomeGridHeader extends StatelessWidget {
|
||||
|
||||
Widget _headerAction({
|
||||
required Key key,
|
||||
required Key frameKey,
|
||||
required IconData icon,
|
||||
required Color color,
|
||||
required String tooltip,
|
||||
@@ -182,10 +185,16 @@ class HomeGridHeader extends StatelessWidget {
|
||||
child: InkWell(
|
||||
key: key,
|
||||
onTap: onTap,
|
||||
child: Icon(
|
||||
icon,
|
||||
size: AppDimens.homeActionIcon,
|
||||
color: color,
|
||||
child: Center(
|
||||
child: SizedBox.square(
|
||||
key: frameKey,
|
||||
dimension: AppDimens.homeActionIcon,
|
||||
child: Icon(
|
||||
icon,
|
||||
size: AppDimens.homeActionIcon,
|
||||
color: color,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -194,8 +203,8 @@ class HomeGridHeader extends StatelessWidget {
|
||||
if (badge != null && badge > 0)
|
||||
Positioned(
|
||||
key: const Key('home-wallet-badge'),
|
||||
top: -5,
|
||||
right: -6,
|
||||
top: 0,
|
||||
right: 0,
|
||||
child: Container(
|
||||
constraints: const BoxConstraints(minWidth: 20, minHeight: 16),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 5),
|
||||
|
||||
Reference in new issue
Block a user