flutter_native_web 1.0.3

flutter_native_web #

Native WebView as a widget in flutter

Inline WebView in flutter using AndroidView and UiKitView

Supported #

  • Android
  • iOS


  • Keypad is not working (No Support by flutter)
  • Don't use inside scrollview
  • onPageStarted, onPageFinished Only works with Android

Screenshot #


How to Use #

  flutter_native_web: "^1.0.3"

import 'package:flutter_native_web/flutterwebview.dart';

WebController webController;

FlutterWebView flutterWebView = new FlutterWebView(
  onWebCreated: onWebCreated,
 new Container(
    child: flutterWebViewString,
    height: 300.0,
    width: 500.0,
void onWebCreated(webController) {
    this.webController = webController;
    this.webController.onPageStarted.listen((url) =>
        print("Loading $url")
    this.webController.onPageFinished.listen((url) =>
        print("Finished loading $url")

or #

String html = '<body>Hello world! <a href="www.html5rocks.com">HTML5 rocks!';

void onWebCreated(webController) {
    this.webController = webController;
    this.webController.onPageStarted.listen((url) =>
        print("Loading $url")
    this.webController.onPageFinished.listen((url) =>
        print("Finished loading $url")

Android #

Ensure the following permission is present in your Android Manifest file, located in project /android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET"/>

iOS #

Opt-in to the embedded views preview by adding a boolean property to the app's Info.plist file with the key io.flutter.embedded_views_preview and the value YES.


Coming soon #

  • JSInterface
  • more (suggest)

1.0.3 #

  • PR #19 Merged

1.0.1 #

  • bug fixes

1.0.1 #

  • loadData method iOS Support added

1.0.0 #

  • iOS Support Added

0.1.2 #

  • Initial release
  • Full html support
  • only android supported


flutter_native_web_example #

Demonstrates how to use the flutter_native_web plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  flutter_native_web: ^1.0.3

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_native_web/flutter_native_web.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 18, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

Health suggestions

Format lib/flutter_native_web.dart.

Run flutter format to format lib/flutter_native_web.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8