Hel*_*era 3 android ios dart flutter
我试图将底部导航栏后面的白色容器扩展到屏幕的最末端。不仅仅是按钮导航栏的限制(如图所示)。
任何帮助或想法都非常感谢,我在 Flutter 中很新。谢谢!
应用程序的结构是:
bottomNavigationBar: BottomAppBar(
shape: CircularNotchedRectangle(),
notchMargin: 8.0,
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
IconButton(
icon: Icon(
Icons.show_chart,
),
onPressed: () {},
),
SizedBox(width: 48.0),
IconButton(
icon: Icon(
Icons.filter_list,
),
onPressed: () {},
),
],
),
),
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
floatingActionButton: FloatingActionButton(
child: Icon(Icons.add),
onPressed: () {},
),
body: Column(
children: <Widget>[
Expanded(
child: Container(
height: 100,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(40),
topRight: Radius.circular(40)
)
),
),
)
],
)
Run Code Online (Sandbox Code Playgroud)
您可以在“Scaffold”类中使用“extendBody: true”
Scaffold(
extendBody: true,
body: _yourBody(),
bottomNavigationBar: _yourBottomNavBar(),
)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1361 次 |
| 最近记录: |