ExtendedSliver는 추가적인 사용자 정의 가능한 컴포넌트로 Sliver 위젯 가족을 강화하는 Flutter 패키지입니다. 스크롤 중에도 고정되는 헤더를 위한 SliverPinnedPersistentHeader, 스크롤 가능한 영역 내에서 어떤 위젯이라도 고정할 수 있는 SliverPinnedToBoxAdapter, 그리고 고급 앱바 기능을 제공하는 ExtendedSliverAppbar를 도입합니다. 복잡한 목록과 앱바에서 스크롤 동작에 대한 세밀한 제어를 원하는 개발자를 위해 설계되었으며, 최소한의 보일러플레이트로 표준 Sliver의 기능을 확장합니다. 여러 플랫폼에서 고도화된 스크롤 경험을 필요로 하는 앱에 이상적입니다.
A powerful extension library of Sliver, which include SliverToNestedScrollBoxAdapter, SliverPinnedPersistentHeader, SliverPinnedToBoxAdapter and ExtendedSliverAppbar.
It's useful that you don't know the final extent before the child are laid out.
SliverPinnedToBoxAdapter(
child: Container(
padding: constEdgeInsets.all(20),
color: Colors.blue.withOpacity(0.5),
child: Column(
children: <Widget>[
constText(
'[love]Extended text help you to build rich text quickly. any special text you will have with extended text. ''\n\nIt\'s my pleasure to invite you to join \$FlutterCandies\$ if you want to improve flutter .[love]''\n\nif you meet any problem, please let me konw @zmtzawqlp .[sun_glasses]'),
FlatButton(
child: constText('I\'m button. click me!'),
onPressed: () {
debugPrint('click');
},
),
],
),
),
)
ExtendedSliverAppbar
You can create SliverAppbar with out force the expandedHeight.