For the complete documentation index, see llms.txt. This page is also available as Markdown.

Flutter

This document provides instructions to create a WebView using Flutter.

Dependencies

To create a WebView to a Flutter application, it's needed to apply the dependencies flutter_inappwebview and permission_handler to your pubspec.yaml:

dependencies:
  flutter:
    sdk: flutter
  flutter_inappwebview: ^6.0.0
  permission_handler: ^11.3.1

Android Manifest

Add these lines to the AndroidManifest.xml file in your Android app module:

<uses-feature
    android:name="android.hardware.camera"
    android:required="true" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

iOS Info.plist

Add these lines to the Info.plist file in you iOS module:

Flutter WebView (Dart)

This is an example of an activity using a WebView

Last updated