showDialogLoading static method

dynamic showDialogLoading(
  1. BuildContext context,
  2. Color color
)

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)),
            ],
          ),
        );
    },
  );
}