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)
              ),
              ),
            ),
          ],
        ),

  

相关文章:

  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2021-12-24
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
猜你喜欢
  • 2021-06-08
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
  • 2021-12-19
  • 2021-09-17
  • 2022-12-23
相关资源
相似解决方案