showDialog static method

Future<Object?> showDialog(
  1. BuildContext context,
  2. Widget body, {
  3. Widget? button1,
  4. Widget? button2,
  5. Widget? button3,
  6. String? title,
  7. Widget? titleWidget,
  8. IconData? icon,
})

Implementation

static Future<Object?> showDialog(BuildContext context, Widget body,
    {Widget? button1, Widget? button2, Widget? button3, String? title, Widget? titleWidget, IconData? icon}) {
  return showGeneralDialog(
    context: context,
    pageBuilder: (context, a1, a2) {
      return Container();
    },
    transitionBuilder: (ctx, anim1, anim2, child) => BackdropFilter(
      filter: ImageFilter.blur(sigmaX: 4 * anim1.value, sigmaY: 4 * anim1.value),
      child: FadeTransition(
        opacity: anim1,
        child: popupWidget(
            context: ctx,
            icon: icon,
            title: title,
            titleWidget: titleWidget,
            body: body,
            button1: button1,
            button2: button2,
            button3: button3),
      ),
    ),
    transitionDuration: const Duration(milliseconds: 300),
  );
}