Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @override
- Widget build(BuildContext context) {
- return new DefaultTabController(
- initialIndex: 0,
- length: 4,
- child: Container(
- child: new Scaffold(
- backgroundColor: Colors.grey,
- appBar: new AppBar(
- elevation: 0.0,
- backgroundColor: Colors.transparent,
- centerTitle: true,
- leading: Icon(Icons.arrow_back),
- actions: <Widget>[
- IconButton(
- icon: Icon(Icons.add),
- onPressed: () {},
- )
- ],
- title: new Text("TAB Test"),
- bottom: new TabBar(
- unselectedLabelColor: Colors.black54,
- isScrollable: true,
- tabs: <Widget>[
- new Tab(
- child: Padding(
- padding: EdgeInsets.all(12.0),
- child: Text(
- "Inbox",
- textScaleFactor: 1.4,
- ),
- )),
- new Tab(
- child: Padding(
- padding: EdgeInsets.all(12.0),
- child: Text(
- "Social",
- textScaleFactor: 1.4,
- ),
- )),
- new Tab(
- child: Padding(
- padding: EdgeInsets.all(12.0),
- child: Text(
- "Promotions",
- textScaleFactor: 1.4,
- ),
- )),
- new Tab(
- child: Padding(
- padding: EdgeInsets.all(12.0),
- child: Text(
- "Updates",
- textScaleFactor: 1.4,
- ),
- )),
- ],
- indicator: BoxDecoration(),
- )),
- body: new TabBarView(children: <Widget>[
- new Container(),
- new Container(),
- new Container(),
- new Container()
- ]),
- ),
- ));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement