Use the NestedScrollView component to wrap the HtmlWidget, and the body has pull-up loading and pull-down refresh, which will cause pull obstacles
error video: https://user-images.githubusercontent.com/63909463/168304216-533834b4-5c50-4c3d-a9d3-b0379688dd7b.mp4
error code
Pull-up refresh pull-down loading plugin: https://github.com/xuelongqy/flutter_easyrefresh
NestedScrollView(headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled){ return <Widget>[ SliverAppBar( pinned: true, centerTitle: true, elevation: 0.5, // leading: BackButton(color: Color(0xFF1A1A1A)), toolbarHeight:44, backgroundColor: Theme.of(context).scaffoldBackgroundColor, iconTheme: IconThemeData( color: Colors.yellow ), title: Text( "测试正文", style: TextThemeStyle.of(context) .fontBold16! .copyWith( color: ColorTheme.of(context) .colorBottom), )), SliverToBoxAdapter( child: HtmlWidget( '''
Heading
A paragraph with strong, emphasized and colored text.
Heading
A paragraph with strong, emphasized and colored text.
Heading
A paragraph with strong, emphasized and colored text.
Heading
A paragraph with strong, emphasized and colored text.
Heading
A paragraph with strong, emphasized and colored text.
Heading
A paragraph with strong, emphasized and colored text.
Heading
A paragraph with strong, emphasized and colored text.
Heading
A paragraph with strong, emphasized and colored text.
Heading
A paragraph with strong, emphasized and colored text.
Heading
A paragraph with strong, emphasized and colored text.
''',) ) ];
}, body: Column(
children: [
Container(
height: 50,
color: Colors.yellow,
child: Text("评论"),
),
Expanded(child: EasyRefresh(child: ListView.builder(itemBuilder: (c,i){
return Container(
color: Colors.red,
height: 40,
);
},
itemCount: 15,
))
)
],
));
Sorry for the late reply. With such a long header, how does pull to refresh suppose to work?