我刚开始开发应用,但是在导航栏上遇到了一些困难。底部的导航栏很好,但顶部的不太好。我想去掉按钮上方的灰色空间。
你能帮我吗?
代码:
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
backgroundColor: Colors.grey,
bottom: new TabBar(
controller: controller,
tabs: <Tab>[
new Tab(icon: new Icon(Icons.arrow_forward)),
new Tab(icon: new Icon(Icons.arrow_downward)),
new Tab(icon: new Icon(Icons.arrow_back)),
]
)
),
body: new TabBarView(
controller: controller,
children: <Widget>[
new first.First(),
new second.Second(),
new third.Third(),
new fourth.Fourth(),
new fifth.Fifth()
]
),
);
}