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"
}