Adding tab labels to TabView in Flutter
Adding tab labels to TabView in Flutter I'm trying to extend the TabView proposed as an answer here. Specifically, instead of the grey dots, I would like to have category labels, and load as a tab content a widget corresponding to that category. I tried following the docs, but if I change something in the AppBar it just gives me a reendering error. 2 Answers 2 You can achieve what you wanted via TabController widget. I found a simple example of TabBar here. You can achieve what you wanted via DefaultTabController widget. You can see the example here with only the icons. And here is the modified version of it with titles. TabBar part is for the tab and it's specifications. TabBarView is for the interior view. DefaultTabController TabBar TabBarView class TabBarDemo extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: DefaultTabCon...