showCustomDialog function

Future<void> showCustomDialog({
  1. required BuildContext context,
  2. required Widget child,
  3. bool isFullScreen = false,
  4. double? width,
  5. double? height,
})

Implementation

Future<void> showCustomDialog({
  required BuildContext context,
  required Widget child,
  bool isFullScreen = false,
  double? width,
  double? height,
}) async {
  await showDialog(
    context: context,
    builder: (context) {
      return XfdnDialog(
        isFullScreen: isFullScreen,
        width: width,
        height: height,
        child: child,
      );
    },
  );
}