fluttercandies / extended_nested_scroll_view

extended nested scroll view to fix following issues. 1.pinned sliver header issue 2.inner scrollables in tabview sync issue 3.pull to refresh is not work. 4.do without ScrollController in NestedScrollView's body
MIT License
596 stars 120 forks source link

[How to use] 达不到预期效果 #129

Open qflbai opened 1 year ago

qflbai commented 1 year ago

Platforms

Android, iOS

Description

我想实现如下图圆角除的效果,发现headerSliverBuilder里的内容会遮挡body里面的内容,如视频

WeChatbc35561b180b28258d3e6e228a247f6e

https://user-images.githubusercontent.com/23705172/228119980-70eeb058-53f9-4ca9-bce1-857b20d43790.mp4

My code

DefaultTabController( length: 2, child: Column( children: [ Expanded( child: ExtendedNestedScrollView( headerSliverBuilder: (context, _) { return [ SliverToBoxAdapter( child: SizedBox( width: double.infinity, height: 200, child: OverflowBox( maxHeight: 220, minHeight: 200, child: Container( height: 220, color: Colors.blue, ), ), ), ) ]; }, body: Column( children: [ Container( decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.circular(20)), child: const TabBar(tabs: [Text("data"),Text("data2")]), ), Expanded( child:TabBarView(children: [ Container( color: Colors.amberAccent, width: 300, ), Container( color: Colors.red, width: 300, )],)) ], ), )) ]), )

Try do it

No response