confirmPaymentLoader function
dynamic
confirmPaymentLoader({
- dynamic context,
Implementation
confirmPaymentLoader({context}) {
return showDialog(
barrierColor: Colors.transparent,
context: context,
barrierDismissible: false,
builder: (BuildContext context) {
return AlertDialog(
elevation: 0,
backgroundColor: Colors.transparent,
contentPadding: EdgeInsets.all(8),
content: Container(
color: Colors.white,
child: Row(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
CommonTextNunito(label: 'Confirming Your Payment'),
SizedBox(
height: 0.5.h,
),
CommonTextNunito(label: 'Please Wait'),
],
),
SizedBox(
width: 1.5.h,
),
CircularProgressIndicator(
color: mediGreen,
strokeWidth: 2.75,
),
],
),
),
);
},
);
}