我有一个TabBar作为我的appbar的底部,如下所示:
appBar: new AppBar(
bottom:
TabBar(
labelColor: Colors.black,
indicatorColor: Color(0xff2CB57D),
tabs: [
Tab(
text: uiLabels['tab1'][globals.currentLang],
),
Tab(text: uiLabels['tab2'][globals.currentLang]),
],
),
然后在这样的身体:
body: TabBarView(
children: [
PollsListPage(),
PollsListPage(),
],
),
这工作得很好..问题是我想用TabBarView在Body中添加Positioned小部件..
我怎样才能做到这一点?
我发现我可以放一个适合两者的身体部件,然后根据需要自定义它。