buildStreamBuilder method
Implementation
Widget buildStreamBuilder(double data) {
return Opacity(
opacity: data,
child: AndroidView(
//调用标识
viewType: "com.flutter_to_native_webview",
//参数初始化
creationParams: {
"isScrollListen": true,
"htmlImageIsClick": widget.htmlImageIsClick,
"webViewCacheMode":widget.webViewCacheMode.toString(),
},
//参数的编码方式
creationParamsCodec: const StandardMessageCodec(),
//webview 创建后的回调
onPlatformViewCreated: (id) {
platformViewCreatedFunction(id);
},
),
);
}