TabBar( indicator: const BoxDecoration(), //取消下划線
unselectedLabelColor: Colors.black38, //未被激活樣式的顏色
indicatorColor: Colors.black54, //被激活的字體顏色
indicatorSize: TabBarIndicatorSize.label, //指示器長度和標簽長度是一樣的
indicatorWeight: 1.0, //下划線粗度
labelColor: Colors.black, tabs: <Widget>[ Tab(child: Text( '充電', style: TextStyle( fontSize: ScreenUtil.getInstance().setSp(38) ), ), ), Tab(child: Text( '停車', style: TextStyle( fontSize: ScreenUtil.getInstance().setSp(38) ), ), ), Tab(child: Text( '用車', style: TextStyle( fontSize: ScreenUtil.getInstance().setSp(38) ), ), ), ], ),