AlertLoader function
dynamic
AlertLoader({
- dynamic context,
Implementation
AlertLoader({context}) {
return showDialog(
context: context,
barrierDismissible: false,
builder: (BuildContext context) {
return AlertDialog(
elevation: 0,
backgroundColor: Colors.transparent,
contentPadding: EdgeInsets.all(8),
content: Container(
width: 12.h,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
color: Colors.white,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
ChoiceCustomText(
label: 'Please Wait',
fontw8: FontWeight.w600,
size: 12.sp,
),
SizedBox(
width: 1.5.h,
),
Padding(
padding: EdgeInsets.all(1.h),
child: CircularProgressIndicator(
color: choiceColor,
strokeWidth: 2,
),
),
],
),
),
);
},
);
}