mirai_webview 0.0.4
mirai_webview: ^0.0.4 copied to clipboard
A WebView Parser for Mirai. A wrapper of `webview_flutter` package for Mirai.
Mirai Web View #
A webView support for Mirai.
Usage #
- Add
mirai_webviewas a dependency in your pubspec.yaml file.
Install the plugin by running the following command from the project root:
flutter pub add mirai_webview
or add it manually in your pubspec.yaml file:
dependencies:
mirai_webview:
- Add
MiraiWebViewParserin Mirai initialize.
void main() async {
await Mirai.initialize(
parsers: const [
MiraiWebViewParser(),
],
);
runApp(const MyApp());
}
- Add Mirai WebView widget in your JSONs.
{
"type": "webView",
"url": "https://github.com/buildMirai/mirai"
}