Dev/Flutter

[Flutter] Tabbar TextStyle Custom

healthyryu 2023. 8. 21. 14:49

TabBar 텍스트 커스텀

TabBar(
  indicatorColor: Colors.white,
  labelStyle: TextStyle(fontSize: 22.0,fontFamily: 'Family Name'),  //For Selected tab
  unselectedLabelStyle: TextStyle(fontSize: 10.0,fontFamily: 'Family Name'), //For Un-selected Tabs
  tabs: [...]);

 

참고 : https://stackoverflow.com/a/54760543/3897810

 

반응형