sticky_footer_scrollview
스크롤 가능한 Flutter 위젯으로, 스티키 풋터는 화면 하단이나 스크롤 본문의 끝에 고정됩니다.
스크롤 가능한 Flutter 위젯으로, 스티키 풋터는 화면 하단이나 스크롤 본문의 끝에 고정됩니다.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A Flutter Widget that is scrollable with a sticky footer either stick to the bottom of screen of the end of the scroll body.
This package using SingleScrollView and CustomMultiChildLayout to acheive a scrollable widget with a sticky footer. This allow a dynamic height of child widgets in scroll body.
At the same time, because of the SingleScrollView with Column approach, this is not recommended to use with lots of child widgets for performance reason. You may simiply test with the example to see whether it is fit for your case.
This shows Widget's full customizations:
StickyFooterScrollView({
this.footer,
@required this.itemBuilder,
@required this.itemCount,
this.scrollController,
})
when scrollbody is shorter than the avialble widget height
when scrollbody is longer than the avialble widget height
@override
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
body: StickyFooterScrollView(
itemCount: 50,
itemBuilder: (context, index) {
return Card(
child: ListTile(
title: Text('content $index'),
),
color: Colors.pinkAccent,
);
},
footer: AppBar(
title: Text('i stick at bottom'),
),
),
),
);
}
MIT
의존성 목록 2 개
{"sdk":"flutter"}{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗