Questions tagged [webview-flutter]

WebView for Flutter (Developers Preview)

122 questions
1
vote
1 answer

Flutter: how to select text in a WebView (WebViewWidget) and do something with it in a function?

I want the users of my app to be able to select text (words, but also whole sentences) in a WebViewWidget, and have an audio of that text played to them (via tts). I only want this to work with u̲n̲d̲e̲r̲l̲i̲n̲e̲d̲ text (or text visually highlighted…
1
vote
0 answers

Is there a way I can make my webview scrolling smoother?

PageView( scrollDirection: Axis.horizontal, children: [ StatefulPageview( //Displays vertical pageview articles: state.articles, currentPage:…
Ashish
  • 45
  • 4
1
vote
1 answer

Flutter postMessages not working on android emulator

I'm developing a webview app using flutter webview_flutter lib. When I send postMessages on IOS it works fine, but when testing on android emulator the terminal print an error message Uncaught Error: Method not found when executing the function…
1
vote
1 answer

Not able to give Microphone access to the website loaded via web view in flutter. Its working in ios

Hi I'm working on an app in flutter. In the app I am loading an external website with a frequency tuner app. I'm not able to give microphone permission in android devices but its working fine in ios devices. Package used package used for web…
midhun p
  • 11
  • 1
1
vote
2 answers

webview_flutter not working on iPhone after iOS 16.1.1 update

I am using webview_flutter 3.0.4 to load a login web page in iOS I have tried both on simulator and on device the app loading it shows the webpage login page for a few milisecounds and then crashs and I get this error WKErrorDomain…
Ali Hassan
  • 219
  • 2
  • 7
1
vote
1 answer

When I click upload photo in Flutter WebView, I want to upload photo from phone

When I click on the photo upload input on the website in Flutter WebView, I want to select and upload a photo from the phone. I don't know how to solve this problem. Can you help? The codes of the website are as follows:
1
vote
0 answers

how display only the webview window in flutter desktop using desktop_webview_window: ^0.1.6?

I'm using desktop_webview_window: ^0.1.6 flutter package. import 'package:flutter/material.dart'; import 'package:desktop_webview_window/desktop_webview_window.dart'; import 'package:bitsdojo_window/bitsdojo_window.dart'; how can i only display…
MD ZDN
  • 209
  • 2
  • 8
1
vote
1 answer

Flutter Frame load interrupted

I am using Flutter web view and my code looks like this, after authentication I'm able to do authentication but there is one web resource error coming that is WebKitErrorDomain, error code 102, error Description : Frame load interrupted. Anyone…
1
vote
3 answers

Flutter Webview - How to postMessage from Dart to JS?

I'm trying to pass the FCM data from dart to the webview using postMessage and listen to these messages in ReactJS. ReactJS: window.addEventListener("message", () => {}); Flutter: webViewController.runJavascript('window.postMessage("Hello…
saibot
  • 331
  • 2
  • 13
1
vote
1 answer

How do I show loading screen until Javascript finished executing on the loaded page?

I am new to Flutter and trying to work on a problem that involves loading a webpage using webview_flutter plugin. My goal is following Load the webpage. Once loaded, execute series of Javascript code, to remove the page elements not needed. Show…
daydreamer
  • 87,243
  • 191
  • 450
  • 722
1
vote
0 answers

did i do anything wrong with webview_flutter when i want to run some javascript in onPageStarted method

onPageStarted: (url) async { var controller = await _controller.future; await controller.runJavascript(_historyJavascriptCode); if (javascriptCodeOnStart != null) { for…
lynn
  • 49
  • 4
1
vote
0 answers

A problem occurred configuring project ':webview_flutter_android'

Steps to Reproduce Flutter 3.0.1 • channel stable, create a new project and only import webview_flutter ^3.0.4 flutter run with Android Simulator (Nexus device 5x API 28 Android 9.0) Error: > Could not resolve all files for configuration…
Es Rell
  • 11
  • 1
1
vote
1 answer

Whatsapp web Desktop mode in flutter

I want to open Whatsapp Web Desktop mode in my flutter app As shown in picture Required Result I am used webview_flutter webview_flutter_plus packages but both results same. my initial url is https://web.whatsapp.com The code i am using are as…
1
vote
1 answer

webView flutter loads white screen sometimes

I am working on app where I need to show certificate in pdf format inside WebView from specific URL. I am using webview_flutter plugin for webview. Please consider the below mentioned code: WebView( debuggingEnabled: true, initialUrl:…
Kishan sharma
  • 701
  • 1
  • 6
  • 20
1
vote
2 answers

How to open file picker from gallery or camera android in webview_flutter?

I´m currently working on a project based on php and javascript where, within its functions, it requires uploading an image through an input, which works perfectly from the browser. Encapsulating the web application in an android app, I use flutter…
JLCornejo
  • 13
  • 1
  • 4
1 2
3
8 9