The Stac WebView allows you to display WebView widget using JSON in your app. It is based on the webview_flutter plugin.Documentation Index
Fetch the complete documentation index at: https://docs.stac.dev/llms.txt
Use this file to discover all available pages before exploring further.
Usage
- Add
stac_webviewas a dependency in your pubspec.yaml file.
pubspec.yaml file:
- Add
StacWebViewParserin Stac initialize.
Properties
| Property | Type | Description |
|---|---|---|
url | String | The URL to load in the WebView. |
javaScriptMode | JavaScriptMode | Sets whether JavaScript execution is enabled. Default is JavaScriptMode.unrestricted. |
backgroundColor | String | Background color of the WebView. Default is #FFFFFF. |
userAgent | String? | The user agent for the WebView. |
enableZoom | bool | Sets whether zoom is enabled for the WebView. Default is false. |
layoutDirection | TextDirection | The layout direction for the WebView. Default is TextDirection.ltr. |
Example
- Dart
- JSON
- Preview