Questions tagged [flutterwebviewplugin]
245 questions
51
votes
10 answers
Flutter WEB download option
I am making flutter web app that should generate a file from user data. And have the option to download the output file.
But I can not find any options/packages which works for flutter web :(
Can someone please help me out?

Pratik
- 741
- 1
- 6
- 8
12
votes
3 answers
How to listen to events in flutter webview?
I want to close the webview in my flutter app when the user clicks on a button which is present in the webview
Here is the code which displays the webview
class WebViewApp extends StatefulWidget {
@override
_WebViewAppState createState() =>…

Harshvardhan R
- 407
- 2
- 7
- 12
10
votes
3 answers
Flutter web view doesn't work on release mode
I'm creating a Flutter application.
If I run this application on debug mode webview works well
but if I run this application on release mode it shows blank screen. It's showing PlatformException
I tried to get help from github issues but couldn't…

Viks
- 1,510
- 4
- 22
- 50
10
votes
2 answers
Flutter load local assets for HTML
I am loading a local HTML file into a Widget using flutter_webview package in the following way:
FutureBuilder(
future: LocalLoader().loadLocal(),
builder: (context, snapshot) {
if (snapshot.hasData) {
// return…

Durdu
- 4,649
- 2
- 27
- 47
9
votes
1 answer
Limiting URL accessibility in Flutter WebView plugin
I started using Flutter's WebView plugin to show a Facebook feed in my application. I am wanting to limit what the application user is allowed to do in the application webview, in other words, I don't want them to be able to access another other…

Lonely Twinky
- 435
- 1
- 6
- 17
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
7
votes
1 answer
flutter_inappwebview and flutter_downloader - not sure what I'm doing wrong?
Upfront info:
Language: Flutter/Dart
Flutter Packages: flutter_inappwebview, flutter_downloader
I'm having an issue with a mobile application I'm building for Android using Flutter. One function of the app is to be able to download links that are…

Paul VanGundy
- 71
- 1
- 2
6
votes
0 answers
flutter inappwebview encodeURL having wrong string in android while it is working fine in iOS?
I have used inappwebview in our app. I am getting different encodedUrl in shouldOverrideUrlLoading method for iOS and Android. While in iOS it is working fine but for android it is not giving proper url.
encodedURL
iOS :…

AsiteUser
- 217
- 1
- 4
6
votes
1 answer
Flutter web - Parent widget is not scrolling when mouse over is on HtmlElementView Widget for iframe
In Flutter web project, We are embedding Webview inside a List through HtmlElementView widget. Parent widget is not scrolling when the mouse over is on HtmlElementView Widget.
We are getting height of web content and assigning that height to the…

Pushpa Raja
- 642
- 6
- 17
6
votes
1 answer
How to download files in Flutter WebView?
I am working on Flutter webview apps using Flutter Webview.
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
import 'package:url_launcher/url_launcher.dart';
void main() => runApp(MyApp());
class MyApp…

PARAS GUPTA
- 302
- 3
- 13
6
votes
0 answers
Flutter WebView retain access token
I am building a flutter application that will at some point within the app open a webview visiting
web-pages behind my SSO application.
As of right now when the user logs in using the flutter_AppAuth plugin , the user is given a token that
is stored…

William
- 373
- 2
- 3
- 11
6
votes
0 answers
In flutter, how can I inject an `js` script `atDocumentStart` instead of `onload`?
I am trying to create a webview in Flutter that the user can as a web browser that injects some js code to the document before it is loads (atDocumentStart).
I have tries several ways but it always seems to inject the code too late (onload).
final…

Tal Beja
- 61
- 2
5
votes
1 answer
how do i resolve, "Lexical or Preprocessor Issue (Xcode): Flutter/Flutter.h' file not found"?
In file included from /Users/shaifdihan/development/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/ios/Classes/JavaScriptChannelHandler.m:5:
…

Shaif Mohammad Reasat Dihan
- 131
- 1
- 11
5
votes
4 answers
The method 'registerMessageHandler' isn't defined for the type 'Registrar'
import 'package:cloud_firestore_web/cloud_firestore_web.dart';
import 'package:firebase_analytics_web/firebase_analytics_web.dart';
import 'package:firebase_auth_web/firebase_auth_web.dart';
import…

Abd ur Rehman
- 183
- 1
- 2
- 15
5
votes
2 answers
How to open localhost in flutter webview
What I m trying:
Open a local host in flutter WebView. I am using This plugin and this project is running in Django with URL: http://127.0.0.1:8000/. I want to open this in my flutter app.
What I have tried:
After searching SO answers, URL:…

Sandeep Sharma
- 639
- 2
- 9
- 34