platformWebViewWidget method
Widget
platformWebViewWidget(
)
Implementation
Widget platformWebViewWidget() {
if(widget.controller.platform is AndroidWebViewController && BootpayConfig.DISPLAY_WITH_HYBRID_COMPOSITION) {
return WebViewWidget.fromPlatformCreationParams(
params: AndroidWebViewWidgetCreationParams.fromPlatformWebViewWidgetCreationParams(
AndroidWebViewWidgetCreationParams(
controller: widget.controller.platform,
),
displayWithHybridComposition: true,
),
);
}
return WebViewWidget(
// key: widget.webViewKey,
controller: widget.controller
);
}