showDialog method

void showDialog({
  1. required Widget content,
})

Implementation

void showDialog({required Widget content}) {
  showGeneralDialog(
      context: context,
      pageBuilder: (context, anim1, anim2) {
        return PopScope(
            canPop: false,
            onPopInvoked: (val) async => false,
            child: const SizedBox());
      },
      transitionBuilder: (context, a1, a2, widget) {
        return PopScope(
            canPop: false,
            onPopInvoked: (val) async => false,
            child: Transform.scale(
              scale: a1.value,
              child: Opacity(
                opacity: a1.value,
                child: content,
              ),
            ));
      },
      barrierDismissible: true,
      barrierLabel: "");
}