From 57ce270b4f810b1eb6b4dbaa1f04f14473587743 Mon Sep 17 00:00:00 2001 From: zhx Date: Sat, 16 May 2026 02:05:57 +0800 Subject: [PATCH] Fix my items profile card tab overflow --- lib/modules/user/my_items/my_items_page.dart | 60 ++++++++++---------- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/lib/modules/user/my_items/my_items_page.dart b/lib/modules/user/my_items/my_items_page.dart index 2276720..e4a7a01 100644 --- a/lib/modules/user/my_items/my_items_page.dart +++ b/lib/modules/user/my_items/my_items_page.dart @@ -92,39 +92,37 @@ class _MyItemsPageState extends State top: false, child: Column( children: [ - Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - TabBar( - tabAlignment: TabAlignment.center, - isScrollable: true, - labelColor: Colors.white, - unselectedLabelStyle: SCGlobalConfig.businessLogicStrategy - .getStorePageTabUnselectedLabelStyle() - .copyWith( - fontSize: - SCGlobalConfig.businessLogicStrategy - .getStorePageTabUnselectedLabelStyle() - .fontSize - ?.sp, - ), - // indicatorPadding: EdgeInsets.symmetric( - // vertical: 5.w, - // horizontal: 15.w, - // ), - indicator: SCFixedWidthTabIndicator( - width: 15.w, - color: - SCGlobalConfig.businessLogicStrategy - .getStorePageTabIndicatorColor(), - ), - dividerColor: + SizedBox( + width: double.infinity, + child: TabBar( + tabAlignment: TabAlignment.center, + isScrollable: true, + labelColor: Colors.white, + unselectedLabelStyle: SCGlobalConfig.businessLogicStrategy + .getStorePageTabUnselectedLabelStyle() + .copyWith( + fontSize: + SCGlobalConfig.businessLogicStrategy + .getStorePageTabUnselectedLabelStyle() + .fontSize + ?.sp, + ), + // indicatorPadding: EdgeInsets.symmetric( + // vertical: 5.w, + // horizontal: 15.w, + // ), + indicator: SCFixedWidthTabIndicator( + width: 15.w, + color: SCGlobalConfig.businessLogicStrategy - .getStorePageTabDividerColor(), - controller: _tabController, - tabs: _tabs, + .getStorePageTabIndicatorColor(), ), - ], + dividerColor: + SCGlobalConfig.businessLogicStrategy + .getStorePageTabDividerColor(), + controller: _tabController, + tabs: _tabs, + ), ), SizedBox(height: 5.w), Expanded(