Fix my items profile card tab overflow

This commit is contained in:
zhx 2026-05-16 02:05:57 +08:00
parent 1542f82dd2
commit 57ce270b4f

View File

@ -92,39 +92,37 @@ class _MyItemsPageState extends State<MyItemsPage>
top: false, top: false,
child: Column( child: Column(
children: [ children: [
Row( SizedBox(
mainAxisAlignment: MainAxisAlignment.center, width: double.infinity,
children: [ child: TabBar(
TabBar( tabAlignment: TabAlignment.center,
tabAlignment: TabAlignment.center, isScrollable: true,
isScrollable: true, labelColor: Colors.white,
labelColor: Colors.white, unselectedLabelStyle: SCGlobalConfig.businessLogicStrategy
unselectedLabelStyle: SCGlobalConfig.businessLogicStrategy .getStorePageTabUnselectedLabelStyle()
.getStorePageTabUnselectedLabelStyle() .copyWith(
.copyWith( fontSize:
fontSize: SCGlobalConfig.businessLogicStrategy
SCGlobalConfig.businessLogicStrategy .getStorePageTabUnselectedLabelStyle()
.getStorePageTabUnselectedLabelStyle() .fontSize
.fontSize ?.sp,
?.sp, ),
), // indicatorPadding: EdgeInsets.symmetric(
// indicatorPadding: EdgeInsets.symmetric( // vertical: 5.w,
// vertical: 5.w, // horizontal: 15.w,
// horizontal: 15.w, // ),
// ), indicator: SCFixedWidthTabIndicator(
indicator: SCFixedWidthTabIndicator( width: 15.w,
width: 15.w, color:
color:
SCGlobalConfig.businessLogicStrategy
.getStorePageTabIndicatorColor(),
),
dividerColor:
SCGlobalConfig.businessLogicStrategy SCGlobalConfig.businessLogicStrategy
.getStorePageTabDividerColor(), .getStorePageTabIndicatorColor(),
controller: _tabController,
tabs: _tabs,
), ),
], dividerColor:
SCGlobalConfig.businessLogicStrategy
.getStorePageTabDividerColor(),
controller: _tabController,
tabs: _tabs,
),
), ),
SizedBox(height: 5.w), SizedBox(height: 5.w),
Expanded( Expanded(