1.AppBar、BottomNavigationBar 高度
flutter插件包位置:/flutter/src/material/constans.dart 中代码
/// * [kMinInteractiveDimensionCupertino]
/// * The Material spec on touch targets at <https://material.io/design/usability/accessibility.html#layout-typography>.
const double kMinInteractiveDimension = 48.0;
/// The height of the toolbar component of the [AppBar].
const double kToolbarHeight = 56.0;
/// The height of the bottom navigation bar.

本文介绍了如何在Flutter中调整AppBar和BottomNavigationBar的高度,遵循Material设计规范,同时讨论了状态栏高度的获取方法。还展示了如何动态设置AppBar的高度,以适应不同屏幕尺寸。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



