defaultPlaceHolder function
Widget
defaultPlaceHolder(
- BuildContext context,
- DialogType dialogType,
- double? height,
- double? width,
- Color? primaryColor, {
- Widget? child,
- ShapeBorder? shape,
placeholder for dialog
Implementation
Widget defaultPlaceHolder(
BuildContext context,
DialogType dialogType,
double? height,
double? width,
Color? primaryColor, {
Widget? child,
ShapeBorder? shape,
}) {
return Container(
height: height,
width: width,
decoration: BoxDecoration(
color: getDialogPrimaryColor(context, dialogType, primaryColor)
.withOpacity(0.2),
),
alignment: Alignment.center,
child: child ?? getCenteredImage(context, dialogType, primaryColor),
);
}