Skip to content
pubscout

webview_flutter_plus

0.4.21, released 6 weeks ago by shahxad.com

Extension of webview_flutter to load local HTML, CSS, and JS from assets or strings via a local server.

$ flutter pub add webview_flutter_plus
Source repository

What it does

Extends webview_flutter to facilitate loading local HTML, CSS, and JavaScript content from assets or strings through a local server. It also provides a way to get the WebViewWidget height for rendering inside lists.

AI-written summary of version 0.4.21, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to load local HTML, CSS, or JavaScript files from assets.
  • You want to render HTML strings inside a Flutter application via a web view.
  • You need features built on top of webview_flutter with local server support.

Skip it when

  • You only need standard remote URL web views and can use the base webview_flutter directly.
  • You do not want to configure platform-specific cleartext traffic or arbitrary loads settings.

Strengths

  • Loads local assets including HTML, CSS, and JavaScript easily.
  • Inherits features from the stable webview_flutter package.
  • Provides helper to retrieve web view height for list views.

Weaknesses

  • Requires manual Android and iOS manifest/plist configuration for cleartext traffic and arbitrary loads.
  • Depends on an internal local server implementation which might introduce edge cases.

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
3

Requires adding android:usesCleartextTraffic='true' and INTERNET permission in AndroidManifest.xml, and NSAppTransportSecurity with NSAllowsArbitraryLoads in iOS Info.plist.

import 'package:webview_flutter_plus/webview_flutter_plus.dart';

// Use WebViewPlus widget in your layout

Alternatives

Packages that do the same job and could replace webview_flutter_plus.

Works with

Packages commonly used together with webview_flutter_plus: ones it builds on, ones built on it, and its own family.