How to auto scroll in Flutter InAppWebView?

I have created an In app web view using dependency flutter_inappwebview: ^4.0.0+4

       InAppWebView(
                    initialUrl: Constents.passedLink,
                    initialHeaders: {},
                    onWebViewCreated: (InAppWebViewController controller) {
                      webView = controller;
                    },
                    onLoadStart:
                        (InAppWebViewController controller, String url) {},
                    onLoadStop:
                        (InAppWebViewController controller, String url) {},
                  ),

There is a feature scrollTo({}) which automatically scrolls to a certain position in website, but i am unable to implement it such that website automatically scrolls after some time or at a certain velocity.



Read more here: https://stackoverflow.com/questions/65881730/how-to-auto-scroll-in-flutter-inappwebview

Content Attribution

This content was originally published by Malay Agrawal at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: