Added the tab bar view
This commit is contained in:
parent
74c63ee70a
commit
98edfee91e
1 changed files with 32 additions and 11 deletions
|
|
@ -27,19 +27,40 @@ class _EventScreenState extends State<EventScreen>
|
|||
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: CustomAppBar(
|
||||
title: widget.eventName,
|
||||
bottom: TabBar(
|
||||
controller: _tabController,
|
||||
tabs: <Tab>[
|
||||
Tab(
|
||||
text: 'tab1',
|
||||
appBar: buildAppBar(),
|
||||
body: TabBarView(
|
||||
controller: _tabController,
|
||||
children: <Widget>[
|
||||
Center(
|
||||
child: Text(
|
||||
'Tasks',
|
||||
style: kBigTextStyle,
|
||||
),
|
||||
Tab(
|
||||
text: 'tab2',
|
||||
),
|
||||
Center(
|
||||
child: Text(
|
||||
'Media',
|
||||
style: kBigTextStyle,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget buildAppBar() {
|
||||
return CustomAppBar(
|
||||
title: widget.eventName,
|
||||
bottom: TabBar(
|
||||
controller: _tabController,
|
||||
tabs: <Tab>[
|
||||
Tab(
|
||||
text: 'Tasks',
|
||||
),
|
||||
Tab(
|
||||
text: 'Media',
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue