showDialogLoading static method
Implementation
static showDialogLoading(BuildContext context, Color color) {
showDialog(
context: context,
barrierDismissible: false,
barrierColor: Colors.grey.withOpacity(0.5),
builder: (BuildContext context) {
return Padding(
padding: const EdgeInsets.all(20),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
CircularProgressIndicator(
valueColor:
new AlwaysStoppedAnimation<Color>(color)),
],
),
);
},
);
}