Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not rendering when scrooling #703

Closed
omerbyrk opened this issue Mar 5, 2021 · 4 comments
Closed

Not rendering when scrooling #703

omerbyrk opened this issue Mar 5, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@omerbyrk
Copy link

omerbyrk commented Mar 5, 2021

Problem

I have downloaded latest version of in app webview which is v5.0.5+3. When I scrooling on page, It is not rendering properly. When I test it older version v4.0.4 It works perfect. How can I solve the problem?

Environment

Flutter 1.27.0-4.0.pre
Framework • revision f8cd24de95 (2 weeks ago) • 2021-02-16 11:24:17 -0800
Engine • revision 1d537824d6
Tools • Dart 2.13.0 (build 2.13.0-30.0.dev)
iOS: 14.0
xCode 12.0

My Code

InAppWebView(
              initialOptions: InAppWebViewGroupOptions(
                android: AndroidInAppWebViewOptions(
                  useHybridComposition: true,
                  supportMultipleWindows: true,
                  allowContentAccess: true,
                  builtInZoomControls: true,
                  thirdPartyCookiesEnabled: true,
                  allowFileAccess: true,
                ),
                crossPlatform: InAppWebViewOptions(
                  userAgent: AppConsts.userAgent,
                  useShouldOverrideUrlLoading: false,
                  mediaPlaybackRequiresUserGesture: true,
                  supportZoom: false,
                  javaScriptCanOpenWindowsAutomatically: true,
                  applicationNameForUserAgent: "thebuyside",
                  verticalScrollBarEnabled: false,
                ),
                ios: IOSInAppWebViewOptions(
                  sharedCookiesEnabled: true,
                  alwaysBounceVertical: true,
                  disallowOverScroll: true,
                ),
              ),
              onCreateWindow: (_, action) async {
                String url = action.request.url.toString();

                print("onCreateWindow URL: " + url);
                if (url.isExternalOrDeepLink) {
                  AppHelper.launchURL(context, url);
                  return false;
                }

                return false;
              },
              shouldOverrideUrlLoading: (_, action) async {
                String url = action.request.url.toString();
                print("shouldOverrideUrlLoading URL: " + url);

                if (url.isExternalOrDeepLink) {
                  AppHelper.launchURL(context, url);
                  return NavigationActionPolicy.CANCEL;
                }

                return NavigationActionPolicy.ALLOW;
              },
              initialUrlRequest: widget.initialURL.toUrlRequest,
              contextMenu: ContextMenu(
                options:
                    ContextMenuOptions(hideDefaultSystemContextMenuItems: true),
              ),
              onWebViewCreated: (controller) {
                if (!_inAppWebViewController.isCompleted) {
                  _inAppWebViewController.complete(controller);
                  widget.onWebViewCreated(controller);
                }
              },
              onLoadStart: (controller, url) async {
                print(url.toString());
                print("onLoadStart ");
                widget.onLoadStart!(url?.toString());
                if (widget.isShowLoadingActive &&
                    _webviewLoadingState.hasValue) {
                  showLoading();
                }
              },
              onLoadStop: (_, url) {
                loadStop(url?.toString());
              },
            ),

Screen.Recording.2021-03-05.at.16.36.44.mov
@omerbyrk omerbyrk added the bug Something isn't working label Mar 5, 2021
@pichillilorenzo
Copy link
Owner

Yeah I know, I'm going to release a fix today for that.
This bug has been introduced on v5.0.5+1 release

@omerbyrk
Copy link
Author

omerbyrk commented Mar 5, 2021

Thank you :) I am waiting for the release.

pichillilorenzo added a commit that referenced this issue Mar 5, 2021
@pichillilorenzo
Copy link
Owner

new version 5.1.0 released!

Copy link

github-actions bot commented Nov 6, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants