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._globalKey,
      controller: widget._controller
  );
}