【发布时间】:2021-09-07 15:46:04
【问题描述】:
我有一个像这样的标签
我用的是TabBar,我想让绿线像我想要的图片一样在中间,请帮忙
TabBar(
indicatorColor: HexColor(ColorSetup().colorPrimary),
indicatorWeight: 8,
indicatorSize: TabBarIndicatorSize.tab,
indicatorPadding: EdgeInsets.only(left : 5.w, right : 5.w, top : 4.h),
labelColor: HexColor(ColorSetup().colorBlack),
labelStyle: TextStyle(
fontSize: 14.sp,
fontFamily: StringSetup().dinFont,
fontWeight: FontWeight.w700,
color: HexColor(ColorSetup().colorBlack)),
unselectedLabelStyle: TextStyle(
fontSize: 14.sp,
fontFamily: StringSetup().dinFont,
fontWeight: FontWeight.w400,
color: HexColor(ColorSetup().colorBlack)),
tabs: <Widget>[
Tab(
text: 'ALL REWARDS',
),
Tab(
text: 'MY REWARDS',
),
],
)
【问题讨论】: