PopDialogWidget function

Widget PopDialogWidget({
  1. required BuildContext context,
  2. String? title,
  3. Widget? titlewidget,
  4. Widget? msgwidget,
  5. String? msg,
  6. String? cannermsg,
  7. String? suremsg,
  8. Color? surebackgrounColor,
  9. Widget? sureWidget,
  10. Widget? cannerWidget,
  11. int btntype = 1,
  12. dynamic ontapsure()?,
  13. dynamic ontapcanner()?,
})

Implementation

Widget PopDialogWidget(
    {required BuildContext context,
    String? title,
    Widget? titlewidget,
    Widget? msgwidget,
    String? msg,
    String? cannermsg,
    String? suremsg,
    Color? surebackgrounColor,
    Widget? sureWidget,
    Widget? cannerWidget,
    int btntype = 1,
    Function()? ontapsure,
    Function()? ontapcanner}) {
  return Padding(
    padding: EdgeInsets.all(20.w),
    child: Column(
      mainAxisSize: MainAxisSize.min,
      children: [
        titlewidget ??
            Text(
              title ?? "",
              style: TextStyleMacor.fontBold(
                16,
                CommentColorS.col222222,
              ),
              textAlign: TextAlign.center,
            ),
        title == null ? Gaps.vGap5 : Gaps.vGap10,
        msgwidget ??
            Text(
              msg ?? "",
              style: TextStyleMacor.fontBold(
                16,
                CommentColorS.col222222,
              ),
            ),
        Gaps.vGap35,
        CreateSureAndCannerBtnWidget(
          cannermsg: cannermsg,
          suremsg: suremsg,
          btntype: btntype,
          ontapcanner: ontapcanner,
          surebackgrounColor: surebackgrounColor,
          sureWidget: sureWidget,
          cannerWidget: cannerWidget,
          ontapsure: ontapsure,
        )
      ],
    ),
  );
}