extended_nested_scroll_view icon indicating copy to clipboard operation
extended_nested_scroll_view copied to clipboard

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

Open qflbai opened this issue 1 year ago • 0 comments

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

qflbai avatar Mar 28 '23 03:03 qflbai