Questions tagged [webview-flutter]
122 questions
8
votes
1 answer
Flutter WebView window.close() not working (Android)
I cannot close the opened web page using webview flutter with window.close() functionality.
I am using webview_flutter in my application. The website that I've been using has a window.open() function that will open a new window that contains…

Tepits
- 374
- 6
- 19
5
votes
0 answers
Hero transition across 2 pages using webviews - Flutter
I'm trying to achieve Hero transition between two WebViews (same webviews/URL), using this as reference (https://www.youtube.com/watch?v=RA-vLF_vnng) but that video just says that I have to use GlobalKey to make this works. but, I have no found an…

Renê Guilherme Nucci
- 1,551
- 13
- 17
4
votes
1 answer
webview_flutter javascript channel can't communicate in release mode
I am using webview_flutter with version 3.0.0 in my app. I have heavy usage of two-way communication between flutter and javascript. Everything works on debug mode nicely. But, after I build the APK started to get some errors in the javascript…

Md Abdul Halim Rafi
- 1,810
- 1
- 17
- 25
4
votes
3 answers
Why webview_flutter not working in case of add to app (iOS)?
So I am trying to open a simple webview when a button is clicked.
This is the body of my Scaffold widget:
body:
WebView(
initialUrl: "https://www.google.com/",
javascriptMode: JavascriptMode.unrestricted,
)
The interesting part is when I…

Let's_Create
- 2,963
- 3
- 14
- 33
3
votes
2 answers
How to autofill login id and password in third party website in Flutter webview?
Currently, I am using flutter inappwebview plugin, I want to create an auto-login like google chrome asking if we want to save passwords, and then autofill next time. Is it possible?

Aman Singh
- 41
- 2
3
votes
3 answers
Dependency 'androidx.webkit:webkit:1.5.0' requires 'compileSdkVersion' to be set to 32 or higher
According to the documentation for "webview_flutter", the package requires Android SDK 20+. Immediately after running flutter pub add webview_flutter and restarting my app (without even attempting to use WebView yet), I'm greeted with the following…

Chris Bornhoft
- 4,195
- 4
- 37
- 55
3
votes
1 answer
flutter build apk --release build the apk file but it give error after installing on Android
I have converted google website into Web app for android using webview_flutter: ^1.0.7 package when I run the code in my physical device by making it external emulator the app work perfectly but when I build the APK using flutter build apk…

MOHAMMAD ZEESHAN
- 273
- 3
- 15
3
votes
0 answers
webview_flutter: Uncaught (in promise) NotAllowedError: Write permission denied
Expected behavior:
Copy text using Copy to clipboard from a website
Behavior:
It throws the following error and text is not copied to android's Clipbord.
Package: webview_flutter
I/chromium(12065): [INFO:CONSOLE(0)] "Uncaught (in promise)…

Navin Kodag
- 31
- 1
- 3
3
votes
4 answers
Can local image files be used with webview_flutter?
Background
Im using webview_flutter 3.0.0 in order to render a complex HTML string that I'm creating in real time. So its not content loaded from the web. I'm doing this as follows:
final Completer _controller =
…

Mark
- 3,653
- 10
- 30
- 62
3
votes
1 answer
Turn off Xiaomi MIUI dark mode in flutter WebView
I'm using webview_flutter plugin and when webview opens on any Xiaomi on dark mode device, it forces dark mode and I don't know how to avoid it
Here is my code:
import 'dart:async';
import 'dart:io';
import 'package:flutter/cupertino.dart';
import…
3
votes
0 answers
Flutter Webview Error acquiring assertion; Client is missing required entitlement;
For both flutter_webview_plugin.dart' and webview_flutter.dart'
I am getting the following error when I got to certain websites. No errors if I go to youtube or google. How can I find out what required entitlement it is missing?
[assertion] Error…

karmelcorn
- 512
- 1
- 5
- 12
3
votes
1 answer
Flutter: Restrict webview_flutter long press gestures or opening link previews
I am working with an app in Apache Cordova, but I am not able to get the cookies and retain them from the website I am loading using Inappbrowser.
So I switched to flutter where I am able to do the above functionality.
However, I would like the app…

Bhargow Atkuri
- 31
- 3
3
votes
2 answers
Flutter / webview_flutter too big to fit screen
I am running flutter 1.17.1, using webview_flutter: ^0.3.21
dependencies added to pubspec.yaml and added this to the end of info.plist
io.flutter.embedded_views_preview
YES
Problem: Webpage loaded into webview is too…

Samson
- 31
- 1
- 5
2
votes
0 answers
Flutter WebView retain state of widget to prevent reload
I want to open a Webview on button click and after coming back from webview clicking on the same button, Webview should not be reloaded.
To achieve this I have tried AutomaticKeepAliveClientMixin but It works majorly with PageView not stand-alone…

Anukool srivastav
- 807
- 1
- 12
- 20
2
votes
2 answers
The class 'WebViewController' doesn't have an unnamed constructor
I have a problem with my flutter app using the package webview_flutter , here Is my code:
pubspec.yaml
webview_flutter: ^4.0.6
dart
WebViewController breachWebViewController = WebViewController()
…

Ahmed Wagdi
- 3,913
- 10
- 50
- 116