我刚刚开始开发应用程序,并且在导航栏中苦苦挣扎。底部的一个很好,但顶部的一个不好。我想删除按钮上方的灰色空间。
你能帮助我吗?
[图片]

码:
@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()
]
),
);
}
Run Code Online (Sandbox Code Playgroud) 我有一个 firebase 实时数据库。它看起来像这样:

这是我的代码:
ref.child("2").observeSingleEvent(of: .value, with: { snapshot in
guard let dict = snapshot.value as? [String:Any] else {
print("Error")
return
}
let latitude = dict["Latitude"] as Any
let longtitude = dict["Longtitude"] as Any
print(longtitude)
print(latitude)
})
Run Code Online (Sandbox Code Playgroud)
我的问题是我的代码仅从名为 的孩子中检索数据2。我怎样才能让它检索所有孩子的数据?
如果您有任何疑问,请告诉我。谢谢你的帮助!