首页 > 解决方案 > Flutter 固定底部自定义导航

问题描述

在颤振中实现自定义固定底部导航的最佳方法是什么?目前我有:

return Scaffold(
 body: Stack(
  children: <Widget>[
   Positioned(
     // Custom AppBar
   ),
   Positioned(
     // Content
   ),
   Positioned(
    // My custom fixed bottom navigation
   )

然后我使用 MediaQuery.of(context).size.height 并减去自定义 AppBar 和自定义底部导航的高度以获得内容高度。它有效,但这种方法存在许多问题。有没有更好的办法?

标签: flutterappbar

解决方案


推荐阅读