I created a web by using flutter, then deployed it with Docker. I use Line to open my website with the URL. But, when I try to scroll down fast, the webview will close easily. But if I scroll down slowly then everything works fine. This situation only occur on ios. In andriod is totally fine.
Here is some path of my code.
body: ListView(
physics: BouncingScrollPhysics(),
addAutomaticKeepAlives: true,
cacheExtent: 6000.0,
scrollDirection: Axis.vertical,
children: [
Stack(
children: [
Center(
child: Column(
children: [
SizedBox(height: _screenSize.height * 0.03),
Container(
width: _screenSize.width * 0.9,
padding: EdgeInsets.all(_screenSize.width / 15),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(5)),
color: Colors.white,
),
child: ...
Here is the example web that using flutter. https://flutter.github.io/samples/web/animations/#/
You can see the problems if you open the URL with Line webview and try to scroll down to see the above contents.
question from:
https://stackoverflow.com/questions/65905253/scrolling-down-too-fast-will-close-the-webview-when-open-a-flutter-web-by-using 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…