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.
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.
- webview_flutter_android
Android implementation of the webview_flutter plugin providing a WebView widget.
84Compare - webview_flutter_web
WebView widget implementation for Flutter web.
50Compare - webview_all
A cross-platform WebView plugin for Android, iOS, macOS, Windows, Linux, Web, and OpenHarmony.
87Compare - desktop_webview_window
Show a native webview window on your Flutter desktop application.
94Compare
Works with
Packages commonly used together with webview_flutter_plus: ones it builds on, ones built on it, and its own family.
- mimewebview_flutter_plus depends on itUtilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.
- webview_flutter_wkwebviewwebview_flutter_plus depends on itA Flutter plugin providing a WebView widget based on Apple's WKWebView control.
- webview_flutterwebview_flutter_plus depends on itFlutter plugin that embeds a native WebView widget.
- flutter_texBuilt on webview_flutter_plusRenders mathematical and chemical equations using LaTeX, TeX, MathML, and AsciiMath.