Answers for "how to use tab bar view in flutter"

1

tabs flutter example

DefaultTabController(
  length: 3,
  child: Scaffold(
    appBar: AppBar(
      bottom: TabBar(
        tabs: [
          Tab(icon: Icon(Icons.directions_car)),
          Tab(icon: Icon(Icons.directions_transit)),
          Tab(icon: Icon(Icons.directions_bike)),
        ],
      ),
    ),
  ),
);
Posted by: Guest on June-20-2020
3

flutter tabbar

body: TabBarView(
          children: [
            Center(
              child: Text("It's cloudy here"),
            ),
            Center(
              child: Text("It's rainy here"),
            ),
            Center(
              child: Text("It's sunny here"),
            ),
          ],
        ),
Posted by: Guest on August-29-2021

Code answers related to "how to use tab bar view in flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language