How to render a local HTML file with flutter dart webview

I am using the webview_flutter plugin from the Flutter Team. Steps Add the dependency to pubspec.yaml: dependencies: webview_flutter: ^0.3.20+2 Put an html file in the assets folder (see this). I’ll call it help.html. Get the html string in code and add it to the webview. import ‘dart:convert’; import ‘package:flutter/material.dart’; import ‘package:flutter/services.dart’; import ‘package:webview_flutter/webview_flutter.dart’; class HelpScreen … Read more

WebViewClient onReceivedError deprecated, new version does not detect all errors

You could also do following: @SuppressWarnings(“deprecation”) @Override public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) { // Handle the error } @TargetApi(android.os.Build.VERSION_CODES.M) @Override public void onReceivedError(WebView view, WebResourceRequest req, WebResourceError rerr) { // Redirect to deprecated method, so you can use it in all SDK versions onReceivedError(view, rerr.getErrorCode(), rerr.getDescription().toString(), req.getUrl().toString()); } Make sure … Read more

ReferenceError getValuesOfAutofillInputs, Can’t find variable: PaymentAutofillConfig

As you have already searched for getValuesOfAutofillInputs and PaymentAutofillConfig without any results, it is possible that this issue might be related to how Facebook’s webview handles autofill features for payment information. Try this steps: – Replicate the issue: Try to reproduce the issue on multiple iOS devices and different versions of the Facebook and Instagram … Read more

Tapping form field in WebView does not show soft keyboard

http://code.google.com/p/android/issues/detail?id=7189 Here is a fix in case other were not clear. webview.requestFocus(View.FOCUS_DOWN); webview.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: case MotionEvent.ACTION_UP: if (!v.hasFocus()) { v.requestFocus(); } break; } return false; } });