showArlet static method

Future showArlet(
  1. BuildContext context,
  2. Widget view, {
  3. EdgeInsets? padding,
  4. Color? bgColor,
  5. BorderSide? side,
})

Implementation

static Future showArlet(
  BuildContext context,
  Widget view, {
  EdgeInsets? padding,
  Color? bgColor,
  BorderSide? side,
}) {
  return showDialog(
      context: context,
      barrierDismissible: false,
      builder: (BuildContext context) {
        return AlertDialog(
          backgroundColor: bgColor,
          shape: RoundedRectangleBorder(
            borderRadius: const BorderRadius.all(Radius.circular(6.0)),
            side: side ??
                BorderSide(
                  width: 1,
                  color: Colors.grey.withOpacity(0.5),
                ),
          ),
          contentPadding: padding ?? const EdgeInsets.all(15),
          content: view,
        );
      });
}