Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
524 views
in Technique[技术] by (71.8m points)

dart - Scrolling down too fast will close the webview when open a flutter web by using Line

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...