defaultPlaceHolder function

Widget defaultPlaceHolder(
  1. BuildContext context,
  2. DialogType dialogType,
  3. double? height,
  4. double? width,
  5. Color? primaryColor, {
  6. Widget? child,
  7. 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),
  );
}