macos_webview_kit 0.0.2+1 macos_webview_kit: ^0.0.2+1 copied to clipboard
兼容MacOS系统的WebView插件,可以像在iOS系统上使用WKWebView一样丝滑。在Flutter MacOS项目中,通过chanel通道,实现WebView的打开(传递url)和关闭。
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add macos_webview_kit
With Flutter:
$ flutter pub add macos_webview_kit
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
macos_webview_kit: ^0.0.2+1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:macos_webview_kit/macos_webview_kit.dart';