admin管理员组文章数量:1355679
At the beginning of scrolling, until the sliverappbar is minimized to its minimum size, a flickering stripe appears at the bottom of the webviewwidget (see video here) How can I fix it without replacing the NestedScrollView with a customscrollview, since you need access to the outer and inner scroll
SafeArea(
child: Scaffold(
body: NestedScrollView(
//controller: controller,
headerSliverBuilder:
(BuildContext context, bool innerBoxIsScrolled) {
return [
SliverOverlapAbsorber(
handle: SliverOverlapAbsorberHandle(),
sliver: SliverSafeArea(
sliver: SliverAppBar(
stretch: true,
stretchTriggerOffset: 100,
expandedHeight: 256,
collapsedHeight: 56,
pinned: true,
),
),
),
];
},
body: CustomScrollView(
slivers: [
SliverToNestedScrollBoxAdapter(
childExtent: 1491,
onScrollOffsetChanged: (scrollOffset) {
double y = scrollOffset;
if (Platform.isAndroid) {
y *= View.of(context).devicePixelRatio;
}
webViewController.scrollTo( 0, y.ceil());
},
child:WebViewWidget(controller: webViewController,)
),
],
),),
),
),
本文标签:
版权声明:本文标题:flutter - flickering bar at the beginning of the scroll, at the bottom of the webviewwidget - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743950000a2567115.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论