Skip to content

Upgrading Webview#11

Open
KaviHarjani wants to merge 3 commits into
mainfrom
webview_upgrade
Open

Upgrading Webview#11
KaviHarjani wants to merge 3 commits into
mainfrom
webview_upgrade

Conversation

@KaviHarjani

Copy link
Copy Markdown
Contributor

Upgrading webview to the latest version + adding refresh when the app is resumed after being paused to address the hanging issue + Added title bar with dark mode support (to have some differentiation from website and app as google has asked for it) + removed drag-to-refresh because it was causing issues , have a refresh button on the app bar

@manujagobind could you check this out will have an apk for all to try out as well, and if want more details on the issue, it's there on basecamp

… is resued after being paused to address the hanging issue + Added title bar with dark mode support (to have some differentiation) + removed drag-to-refresh because it was causing issues, have a refresh button on the app bar
Comment thread lib/webview.dart
Comment on lines +51 to +57
debugPrint('''
Page resource error:
code: ${error.errorCode}
description: ${error.description}
errorType: ${error.errorType}
isForMainFrame: ${error.isForMainFrame}
''');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it ok to leave this here?

Comment thread lib/webview.dart
Comment on lines +84 to +87
"if(document.querySelectorAll('.top-nav-holder')){"
"const topNavHolders = document.querySelectorAll('.top-nav-holder');"
"for (let i = 0; i < topNavHolders.length; i++) {"
" topNavHolders[i].style.display = 'none';}}");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a second two headers are seen before this hides one. One in the app bar and one of the top of the page.

Also, this repeated section can be moved to a common function if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants