AlertLoader function
dynamic
AlertLoader({
- dynamic context,
Implementation
AlertLoader({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(
mainAxisAlignment: MainAxisAlignment.center,
children: [
CommonTextNunito(label: 'Please Wait'),
SizedBox(
width: 1.5.h,
),
CircularProgressIndicator(
color: mediGreen,
strokeWidth: 2.75,
),
],
),
),
);
},
);
}