Search code snippets, questions, articles...

Tab View

DefaultTabController(
    length: 3,
    child: Scaffold(
      appBar: AppBar(
        elevation: 0,
        bottom: TabBar(indicatorSize: TabBarIndicatorSize.label, tabs: [
          Tab(
            child: Align(
              alignment: Alignment.center,
              child: Text("APPS"),
            ),
          ),
          Tab(
            child: Align(
              alignment: Alignment.center,
              child: Text("MOVIES"),
            ),
          ),
          Tab(
            child: Align(
              alignment: Alignment.center,
              child: Text("GAMES"),
            ),
          ),
        ]),
      ),
      body: TabBarView(children: [
        Icon(Icons.apps),
        Icon(Icons.movie),
        Icon(Icons.games),
      ]),
    ),
  );
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place.
Was this helpful?
0 Comments