Created
September 10, 2021 19:57
-
-
Save jtmuller5/5e7f5e82c3de735c73ccdfee21b66a02 to your computer and use it in GitHub Desktop.
Basic TabBar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DefaultTabController( | |
length: 4, | |
child: Scaffold( | |
appBar: AppBar( | |
bottom: const TabBar( | |
tabs: [ | |
Tab(icon: Icon(Icons.home),), | |
Tab(icon: Icon(Icons.whatshot),), | |
Tab(icon: Icon(Icons.person),), | |
Tab(icon: Icon(Icons.menu),), | |
], | |
), | |
), | |
body: TabBarView( | |
children: [ | |
Container(), | |
Container(), | |
Container(), | |
Container(), | |
], | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment