flutter - Flutter 固定底部自定义导航
问题描述
在颤振中实现自定义固定底部导航的最佳方法是什么?目前我有:
return Scaffold(
body: Stack(
children: <Widget>[
Positioned(
// Custom AppBar
),
Positioned(
// Content
),
Positioned(
// My custom fixed bottom navigation
)
然后我使用 MediaQuery.of(context).size.height 并减去自定义 AppBar 和自定义底部导航的高度以获得内容高度。它有效,但这种方法存在许多问题。有没有更好的办法?
解决方案
推荐阅读
- elasticsearch - 在 kibana 6.3 中启用 https?
- reactjs - ReactJS:Pngquant 构建失败,请确保已安装 libpng-dev
- windows-services - 如何将 WebLogic AdminServer 和 NodeManager 安装为 Windows 服务?
- html - 如何为行标题和列标题创建单元格
- python - CKAN:从基本控制器继承时视图为空
- regex - 带有两位小数或非负整数的非负数的正则表达式。无前导 0
- python - 如何使用 setup.py 安装 python 程序
- node.js - 导入 redux 时出错:
- javascript - document.addEventListener 'copy' 在 IE 上不起作用
- linux - 如何使用编号菜单获得 Linux 自动完成功能?