v0.1.0
appbar_elevation
초기에는 본문과 맞닿아 있는 AppBar용 플러터 위젯이며 스크롤 시 상승합니다.
17좋아요 4330일 다운로드40Pub 점수
플랫폼 정보 없음
초기에는 본문과 맞닿아 있고 스크롤 시 상승하는 AppBar용 플러터 위젯
{"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