showArlet static method
Future
showArlet(
- BuildContext context,
- Widget view, {
- EdgeInsets? padding,
- Color? bgColor,
- 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,
);
});
}