show method

void show(
  1. BuildContext context
)

Implementation

void show(BuildContext context) {
  showGeneralDialog<void>(
    context: context,
    pageBuilder: (hudContext, a1, a2) {
      this.hudContext = hudContext;
      return const Center(child: CircularProgressIndicator());
    },
    barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
    barrierColor: Colors.black26,
    transitionDuration: const Duration(milliseconds: 150),
    transitionBuilder: (c, animation, sa, child) => FadeTransition(
      opacity: CurvedAnimation(
        parent: animation,
        curve: Curves.easeOut,
      ),
      child: child,
    ),
  );
}