From d67b3181b07ad131c6777ce81f9b2fe5a10faebb Mon Sep 17 00:00:00 2001 From: zhx Date: Sun, 17 May 2026 14:52:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E7=9B=B8=E5=85=B3=E6=96=87?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../store/chatbox/store_chatbox_page.dart | 8 +-- .../store/data_card/store_data_card_page.dart | 8 +-- .../store/headdress/store_headdress_page.dart | 8 +-- .../store/mountains/store_mountains_page.dart | 8 +-- lib/modules/store/theme/store_theme_page.dart | 8 +-- .../profile/profile_wall_of_honors_page.dart | 49 +++++++------------ .../props_store_chatbox_detail_dialog.dart | 7 --- .../props_store_data_card_detail_dialog.dart | 9 +--- .../props_store_headdress_detail_dialog.dart | 6 --- .../props_store_mountains_detail_dialog.dart | 7 --- .../props_store_theme_detail_dialog.dart | 6 --- 11 files changed, 24 insertions(+), 100 deletions(-) diff --git a/lib/modules/store/chatbox/store_chatbox_page.dart b/lib/modules/store/chatbox/store_chatbox_page.dart index 880bb32..15e30e8 100644 --- a/lib/modules/store/chatbox/store_chatbox_page.dart +++ b/lib/modules/store/chatbox/store_chatbox_page.dart @@ -88,13 +88,7 @@ class _StoreChatboxPageState height: 45.w, fit: BoxFit.contain, ), - SizedBox(height: 3.w), - buildStoreBagItemTitle( - res.res.propsResources?.name ?? "", - textColor: Colors.white, - fontSize: 11.sp, - ), - SizedBox(height: 3.w), + SizedBox(height: 10.w), Row( mainAxisSize: MainAxisSize.min, children: [ diff --git a/lib/modules/store/data_card/store_data_card_page.dart b/lib/modules/store/data_card/store_data_card_page.dart index cd26c3d..71ffb85 100644 --- a/lib/modules/store/data_card/store_data_card_page.dart +++ b/lib/modules/store/data_card/store_data_card_page.dart @@ -87,13 +87,7 @@ class StoreDataCardPageState fit: BoxFit.cover, ), ), - SizedBox(height: 8.w), - buildStoreBagItemTitle( - res.res.propsResources?.name ?? "", - textColor: Colors.white, - fontSize: 11.sp, - ), - SizedBox(height: 3.w), + SizedBox(height: 12.w), Row( mainAxisSize: MainAxisSize.min, children: [ diff --git a/lib/modules/store/headdress/store_headdress_page.dart b/lib/modules/store/headdress/store_headdress_page.dart index b4e8edf..d9c8564 100644 --- a/lib/modules/store/headdress/store_headdress_page.dart +++ b/lib/modules/store/headdress/store_headdress_page.dart @@ -87,13 +87,7 @@ class _StoreHeaddressPageState width: 55.w, height: 55.w, ), - SizedBox(height: 3.w), - buildStoreBagItemTitle( - res.res.propsResources?.name ?? "", - textColor: Colors.white, - fontSize: 11.sp, - ), - SizedBox(height: 3.w), + SizedBox(height: 10.w), Row( mainAxisSize: MainAxisSize.min, children: [ diff --git a/lib/modules/store/mountains/store_mountains_page.dart b/lib/modules/store/mountains/store_mountains_page.dart index dd58d3a..c1d8819 100644 --- a/lib/modules/store/mountains/store_mountains_page.dart +++ b/lib/modules/store/mountains/store_mountains_page.dart @@ -91,13 +91,7 @@ class _StoreMountainsPageState width: 55.w, height: 55.w, ), - SizedBox(height: 3.w), - buildStoreBagItemTitle( - res.res.propsResources?.name ?? "", - textColor: Colors.white, - fontSize: 11.sp, - ), - SizedBox(height: 3.w), + SizedBox(height: 10.w), Row( mainAxisSize: MainAxisSize.min, children: [ diff --git a/lib/modules/store/theme/store_theme_page.dart b/lib/modules/store/theme/store_theme_page.dart index 2fa5a00..c1da299 100644 --- a/lib/modules/store/theme/store_theme_page.dart +++ b/lib/modules/store/theme/store_theme_page.dart @@ -91,13 +91,7 @@ class _StoreThemePagePageState height: 55.w, borderRadius: BorderRadius.all(Radius.circular(8.w)), ), - SizedBox(height: 3.w), - buildStoreBagItemTitle( - res.res.propsResources?.name ?? "", - textColor: Colors.white, - fontSize: 11.sp, - ), - SizedBox(height: 3.w), + SizedBox(height: 10.w), Row( mainAxisSize: MainAxisSize.min, children: [ diff --git a/lib/modules/user/profile/profile_wall_of_honors_page.dart b/lib/modules/user/profile/profile_wall_of_honors_page.dart index e2cae40..043bf82 100644 --- a/lib/modules/user/profile/profile_wall_of_honors_page.dart +++ b/lib/modules/user/profile/profile_wall_of_honors_page.dart @@ -151,7 +151,7 @@ class _ProfileWallOfHonorsPageState extends State { ), gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( crossAxisCount: 3, - mainAxisExtent: 132.w, + mainAxisExtent: 96.w, mainAxisSpacing: 14.w, crossAxisSpacing: 12.w, ), @@ -161,39 +161,26 @@ class _ProfileWallOfHonorsPageState extends State { Widget _buildBadgeItem(WearBadge badge) { final url = _badgeUrl(badge); - final name = (badge.badgeName ?? "").trim(); - return Column( - mainAxisSize: MainAxisSize.min, - children: [ - Container( - width: 86.w, - height: 86.w, - alignment: Alignment.center, - decoration: BoxDecoration( - color: const Color(0xff0E332D), - borderRadius: BorderRadius.circular(8.w), - border: Border.all( - color: const Color(0xff18F2B1).withValues(alpha: 0.24), - ), - ), - child: netImage( - url: url, - width: 68.w, - height: 68.w, - fit: BoxFit.contain, - noDefaultImg: true, + return Center( + child: Container( + width: 86.w, + height: 86.w, + alignment: Alignment.center, + decoration: BoxDecoration( + color: const Color(0xff0E332D), + borderRadius: BorderRadius.circular(8.w), + border: Border.all( + color: const Color(0xff18F2B1).withValues(alpha: 0.24), ), ), - SizedBox(height: 8.w), - text( - name.isEmpty ? "--" : name, - fontSize: 12, - textColor: Colors.white, - fontWeight: FontWeight.w400, - maxLines: 2, - textAlign: TextAlign.center, + child: netImage( + url: url, + width: 68.w, + height: 68.w, + fit: BoxFit.contain, + noDefaultImg: true, ), - ], + ), ); } diff --git a/lib/ui_kit/widgets/store/props_store_chatbox_detail_dialog.dart b/lib/ui_kit/widgets/store/props_store_chatbox_detail_dialog.dart index 62f2632..f754f5f 100644 --- a/lib/ui_kit/widgets/store/props_store_chatbox_detail_dialog.dart +++ b/lib/ui_kit/widgets/store/props_store_chatbox_detail_dialog.dart @@ -1,5 +1,3 @@ -import 'package:extended_image/extended_image.dart'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; @@ -70,11 +68,6 @@ class _PropsStoreChatboxDetailDialogState mainAxisSize: MainAxisSize.min, children: [ SizedBox(width: 15.w), - text( - widget.res.propsResources?.name ?? "", - textColor: Colors.white, - fontSize: 12.sp, - ), Spacer(), Image.asset( "sc_images/general/sc_icon_jb.png", diff --git a/lib/ui_kit/widgets/store/props_store_data_card_detail_dialog.dart b/lib/ui_kit/widgets/store/props_store_data_card_detail_dialog.dart index 913866f..d099466 100644 --- a/lib/ui_kit/widgets/store/props_store_data_card_detail_dialog.dart +++ b/lib/ui_kit/widgets/store/props_store_data_card_detail_dialog.dart @@ -74,14 +74,7 @@ class _PropsStoreDataCardDetailDialogState mainAxisSize: MainAxisSize.min, children: [ SizedBox(width: 15.w), - Expanded( - child: text( - widget.res.propsResources?.name ?? "", - textColor: Colors.white, - fontSize: 12.sp, - maxLines: 1, - ), - ), + const Spacer(), Image.asset( "sc_images/general/sc_icon_jb.png", width: 22.w, diff --git a/lib/ui_kit/widgets/store/props_store_headdress_detail_dialog.dart b/lib/ui_kit/widgets/store/props_store_headdress_detail_dialog.dart index 3bf4b13..27b354e 100644 --- a/lib/ui_kit/widgets/store/props_store_headdress_detail_dialog.dart +++ b/lib/ui_kit/widgets/store/props_store_headdress_detail_dialog.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; @@ -77,11 +76,6 @@ class _PropsStoreHeaddressDetailDialogState mainAxisSize: MainAxisSize.min, children: [ SizedBox(width: 15.w), - text( - widget.res.propsResources?.name ?? "", - textColor: Colors.white, - fontSize: 12.sp, - ), Spacer(), Image.asset( "sc_images/general/sc_icon_jb.png", diff --git a/lib/ui_kit/widgets/store/props_store_mountains_detail_dialog.dart b/lib/ui_kit/widgets/store/props_store_mountains_detail_dialog.dart index 3dc2752..273415c 100644 --- a/lib/ui_kit/widgets/store/props_store_mountains_detail_dialog.dart +++ b/lib/ui_kit/widgets/store/props_store_mountains_detail_dialog.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; @@ -16,7 +15,6 @@ import '../../../app/constants/sc_global_config.dart'; import '../../../app/routes/sc_fluro_navigator.dart'; import '../../../shared/data_sources/models/enum/sc_currency_type.dart'; import '../../../shared/data_sources/models/enum/sc_props_type.dart'; -import '../../../shared/data_sources/sources/local/user_manager.dart'; import '../../../modules/wallet/wallet_route.dart'; import '../../../main.dart'; import '../../components/sc_debounce_widget.dart'; @@ -76,11 +74,6 @@ class _PropsStoreMountainsDetailDialogState mainAxisSize: MainAxisSize.min, children: [ SizedBox(width: 15.w), - text( - widget.res.propsResources?.name ?? "", - textColor: Colors.white, - fontSize: 12.sp, - ), Spacer(), Image.asset( "sc_images/general/sc_icon_jb.png", diff --git a/lib/ui_kit/widgets/store/props_store_theme_detail_dialog.dart b/lib/ui_kit/widgets/store/props_store_theme_detail_dialog.dart index f887afc..211a05f 100644 --- a/lib/ui_kit/widgets/store/props_store_theme_detail_dialog.dart +++ b/lib/ui_kit/widgets/store/props_store_theme_detail_dialog.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; @@ -76,11 +75,6 @@ class _PropsStoreThemeDetailDialogState mainAxisSize: MainAxisSize.min, children: [ SizedBox(width: 15.w), - text( - widget.res.propsResources?.name ?? "", - textColor: Colors.white, - fontSize: 12.sp, - ), Spacer(), Image.asset( "sc_images/general/sc_icon_jb.png",