📱 Flutter Intermediate

What is TabBar in Flutter?

Answer

TabBar displays a horizontal row of tab indicators (text or icons) for switching between related views. It works with DefaultTabController (simple) or a TabController (programmatic control). Place the TabBar in the bottom property of an AppBar and a TabBarView in the Scaffold body. The TabController synchronizes the tab selection with the displayed view. Each Tab in the TabBar corresponds to a child in the TabBarView.