v0.1.0
appbar_elevation
一个 Flutter 小部件,用于初始时与主体对齐的 AppBar,滚动时会升高。
17喜欢 50近 30 天下载40Pub 分数
平台暂无数据
一个 Flutter 小部件,用于 AppBar,初始时与主体对齐,滚动时升高
以下为英文项目原文快照,最新内容请访问 GitHub。
A Flutter Widget for an AppBar that is initially flush with the body and elevated when scrolled.

Use the ScrollActivatedAppBarElevation widget to wrap a Scaffold that contains
a Scrollable view (e.g. ListView, CustomScrollView). The widget uses a
NotificationListener to detect the scroll position and provides an
appBarElevation value to be used.
@override
Widget build(BuildContext context) {
return ScrollActivatedAppBarElevation(
builder: (BuildContext context, double appBarElevation) {
return Scaffold(
appBar: AppBar(
elevation: appBarElevation,
),
body: ListView(
children: [
// ...
],
),
);
},
);
}
See example for full code.
BSD
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗