xbr_x5_webview 1.0.3
xbr_x5_webview: ^1.0.3 copied to clipboard
A Flutter plugin that provides a WebView widget on Android and iOS which Android's core is tencent x5.
WebView for Flutter used x5 core #
参考 webview_flutter_x5 和 x5_webview ,在其基础上增加 手动安装X5 SDK的功能, 通过获取版本号
Using Hybrid Composition #
- 设置最小SDK
android {
defaultConfig {
minSdkVersion 19
}
}
This means that app will only be available for users that run Android SDK 19 or higher.
- To enable hybrid composition, set
WebView.platform = SurfaceAndroidWebView();ininitState(). For example:
Enable Material Components for Android
To use Material Components when the user interacts with input elements in the WebView, follow the steps described in the Enabling Material Components instructions.