【发布时间】:2021-05-05 22:03:49
【问题描述】:
我很害怕,我有一个快速的问题,想检索两个类SearchBar() & HomeView(),但它只允许检索一个类。我了解缺少某些内容,我想听听您的建议以便更好地学习。
return Scaffold(
appBar: AppBar(
title: Text(title),
actions: <Widget>[
IconButton(
icon: Icon(
Icons.add_box,
color: Colors.white,
),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
AddBookPage(uid: this.widget.uid)));
})
],
),
body: SearchBar(),
body: HomeView(),
drawer: NavigateDrawer(uid: this.widget.uid));
}
Here is the picture how i would like make it look like
I get Search Bar overflowed by Infinity pixels on the bottom
【问题讨论】:
标签: flutter dart flutter-layout