progressHub method
dynamic
progressHub(
- dynamic msg,
- dynamic context
Implementation
progressHub(msg, context) {
showDialog(
barrierDismissible: false,
barrierColor: Colors.black.withOpacity(0.5),
context: context,
builder: (context) => WillPopScope(
onWillPop: () async {
return false;
},
child: AlertDialog(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
backgroundColor: Colors.white.withOpacity(0.9),
content: SizedBox(
height: 200.0,
child: SpinKitSquareCircle(
color: payUnitGreenColor,
size: 50.0,
),
),
),
),
);
}