v0.1.0
appbar_elevation
最初はボディとフラッシュされているAppBar用のFlutterウィジェットで、スクロール時に上に持ち上がる。
17いいね 4330日間ダウンロード40Pub ポイント
プラットフォーム情報なし
最初はボディとフラッシュし、スクロール時に浮き上がるAppBar用のFlutterウィジェット
{"sdk":"flutter"}{"sdk":"flutter"}以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
A Flutter Widget for an AppBar that is initially flush with the body and elevated when scrolled.
https://raw.githubusercontent.com/amitkot/appbar_elevation/HEAD/appbar_elevation.gif
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