nativeWidget method
Widget
nativeWidget(
)
override
Implementation
@override
Widget nativeWidget() {
ui.platformViewRegistry.registerViewFactory(
fawry_button_parent.FawryButton.VIEW_TYPE,
(int viewId) => InputElement()
..attributes = {
"type": "image",
"onClick": "parent.checkout();",
"height": "100%",
"width": "100%"
}
..src = "https://www.atfawry.com/assets/img/FawryPayLogo.jpg"
..alt = "pay-using-fawry"
..id = "fawry-payment-btn",
);
return HtmlElementView(viewType: fawry_button_parent.FawryButton.VIEW_TYPE);
}