loadingIn function

Future loadingIn(
  1. BuildContext context, {
  2. Widget? loaderIn,
})

Implementation

Future loadingIn(BuildContext context, {Widget? loaderIn}) {
  return showDialog(
    barrierDismissible: false,
    context: context,
    builder: (BuildContext context) {
      return SimpleDialog(
        elevation: 0.0,
        backgroundColor: Colors.transparent,
        children: [
          loaderIn ?? loader(),
        ],
      );
    },
  );
}