showLoader static method
Implementation
static void showLoader(BuildContext context, {String? text}) {
showDialog(
context: context,
barrierColor: Colors.transparent,
barrierDismissible: false,
builder: (BuildContext context) {
return PopScope(
canPop: false,
child: Dialog(
// backgroundColor:CustomColors.BLACK,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(15)),
child: PopScope(
canPop: true,
child: Container(
padding: const EdgeInsets.symmetric(
vertical: 10, horizontal: 10),
child: Wrap(
runSpacing: 15,
alignment: WrapAlignment.center,
children: [
const SpinKitCircle(
color: Colors.white,
size: 50.0,
),
Text(
text ??
' Getting image data \n Please check the values once done. ',
textAlign: TextAlign.center,
style: const TextStyle(color: Colors.white),
),
],
)),
),
),
);
});
}