PopDialogWidget function
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,
- dynamic ontapsure()?,
- 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,
)
],
),
);
}