可折叠AppBar
一个具有可折叠 AppBar 的组件。
入门
在你的 pubspec.yaml 文件中添加依赖
dependencies:
collapsible_app_bar: ^0.1.2
运行 flutter pub get 安装包。
用法
要使用此组件,你需要指定 expendedHeight 属性,该属性是 AppBar 展开时的高度,以及 body 组件,它可以是你想要放在 AppBar 下方的任何组件,它会在 AppBar 折叠时滚动。
CollapsibleAppBar(
shrinkTitle: 'Page Title',
expandedHeight: 250,
body: const Center(child: Text('body')),
)
更多详情,请查看示例。

