Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Can we redraw same webview page without loading from start. #105

Open
pramod51 opened this issue Jan 24, 2023 · 0 comments
Open

Can we redraw same webview page without loading from start. #105

pramod51 opened this issue Jan 24, 2023 · 0 comments

Comments

@pramod51
Copy link

pramod51 commented Jan 24, 2023

we get controller after widget gets build but i need the controller outside like flutter_webview packege....so that we web does not build again and it will be same as we seen in previous loaded content.

Expecting something like below
controller = WebViewController() ..setJavaScriptMode(JavaScriptMode.unrestricted) ..setBackgroundColor(const Color(0x00000000)) ..setNavigationDelegate( NavigationDelegate( onProgress: (int progress) { // Update loading bar. }, onPageStarted: (String url) {}, onPageFinished: (String url) {}, onWebResourceError: (WebResourceError error) {}, onNavigationRequest: (NavigationRequest request) { if (request.url.startsWith('https://www.youtube.com/')) { return NavigationDecision.prevent; } return NavigationDecision.navigate; }, ), ) ..loadRequest(Uri.parse('https://flutter.dev'));

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant