showLoadingScreen function

LoadingScreenHandler showLoadingScreen(
  1. BuildContext context, {
  2. String? text,
  3. Color? color,
})

Implementation

LoadingScreenHandler showLoadingScreen(
  BuildContext context, {
  String? text,
  Color? color,
}) {
  var handler = LoadingScreenHandler(
    color: color,
    text: text,
    context: context,
  );

  showDialog<String>(
    context: context,
    builder: (BuildContext context) => LoadingScreenBody(
      handler: handler,
    ),
  );

  return handler;
}