confirm method
Implementation
void confirm(
{required String message,
required Function onTapYes,
required Function onTapNo}) {
showDialog(
context: context,
builder: (BuildContext context) {
return AlertDialog(
backgroundColor: Colors.transparent,
contentPadding: EdgeInsets.zero,
content: Container(
decoration: BoxDecoration(
borderRadius:
BorderRadius.circular(XfdnDesignSystem.settings.cardRadius),
color: Colors.white,
),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Container(
padding: const EdgeInsets.only(
left: 30, right: 30, bottom: 30, top: 30),
child: XfdnText(
message,
textColor: XfdnDesignSystem.settings.primaryColor,
fontSize: 20,
),
),
Container(
height: 50,
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
bottomLeft:
Radius.circular(XfdnDesignSystem.settings.cardRadius),
bottomRight:
Radius.circular(XfdnDesignSystem.settings.cardRadius),
),
color: XfdnDesignSystem.settings.primaryColor,
),
child: Row(
children: [
Expanded(
child: _buildButtonNo(
context,
onTapNo,
),
),
_buiildDivider(),
Expanded(child: _buildButtonYes(context, onTapYes)),
],
),
)
],
),
),
);
},
);
}