Skip to content

Instantly share code, notes, and snippets.

@jtmuller5
Created September 10, 2021 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtmuller5/5e7f5e82c3de735c73ccdfee21b66a02 to your computer and use it in GitHub Desktop.
Save jtmuller5/5e7f5e82c3de735c73ccdfee21b66a02 to your computer and use it in GitHub Desktop.
Basic TabBar
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