Complete the code to create a TabBar with three tabs.
TabBar(tabs: [Tab(text: 'Home'), Tab(text: 'Search'), Tab(text: [1])])
The third tab should be labeled 'Profile' to complete the TabBar with three tabs.
Complete the code to set up a DefaultTabController with 3 tabs.
DefaultTabController(length: [1], child: Scaffold())The length must be 3 to match the number of tabs in the TabBar.
Fix the error in the TabBarView children list to match the number of tabs.
TabBarView(children: [Center(child: Text('Home')), Center(child: Text('Search')), Center(child: Text([1]))])
The third child must correspond to the third tab, which is 'Profile'.
Fill both blanks to create a TabBar inside the AppBar with three tabs.
AppBar(title: Text('My App'), bottom: [1](tabs: [[2]]))
The AppBar's bottom property should be a TabBar widget with the list of Tab widgets.
Fill the blanks to complete a DefaultTabController with Scaffold, AppBar, and TabBarView.
DefaultTabController(length: [1], child: Scaffold(appBar: AppBar(title: Text('Tabs')), body: [2](children: [Center(child: Text('Home')), Center(child: Text('Search')), Center(child: Text('Profile'))])))
Length is 3 for three tabs, body uses TabBarView to show pages.
