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,)
),
],
),),
),
),