stac_webview 0.1.2
stac_webview: ^0.1.2 copied to clipboard
A comprehensive WebView parser for Stac, serving as a wrapper for the `webview_flutter` package to seamlessly integrate web content within Stac applications.
Stac Web View #
A webView support for Stac.
Usage #
- Add
stac_webview
as a dependency in your pubspec.yaml file.
Install the plugin by running the following command from the project root:
flutter pub add stac_webview
copied to clipboard
or add it manually in your pubspec.yaml
file:
dependencies:
stac_webview:
copied to clipboard
- Add
StacWebViewParser
in Stac initialize.
void main() async {
await Stac.initialize(
parsers: const [
StacWebViewParser(),
],
);
runApp(const MyApp());
}
copied to clipboard
- Add Stac WebView widget in your JSONs.
{
"type": "webView",
"url": "https://github.com/StacDev/stac"
}
copied to clipboard