buildPaymentUI method
Implementation
Widget buildPaymentUI( ) {
return Stack(
children: [
platformWebViewWidget(),
if(widget.showCloseButton ?? false)
widget.closeButton != null ?
GestureDetector(
child: widget.closeButton!,
onTap: () => clickCloseButton(),
) :
Padding(
padding: const EdgeInsets.all(5.0),
child: Container(
height: 40,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(child: Container()),
IconButton(
onPressed: () => clickCloseButton(),
icon: Icon(Icons.close, size: 35.0, color: Colors.black54),
),
],
),
),
)
],
);
}