取消tabBar被激活tab的下划線


 

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

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM