showInfoDialog static method
dynamic
showInfoDialog(
- BuildContext context, {
- required String message,
- required Function onContinue,
Implementation
static showInfoDialog(BuildContext context,
{required String message, required Function onContinue}) {
showDialog(
context: context,
builder: (context) {
return AlertDialog(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(
Radius.circular(
16.r,
),
),
),
contentPadding: EdgeInsets.all(
20.w,
),
title: Row(
children: [
Icon(
Icons.info,
color: Pallet.secondary,
size: 24.w,
),
SizedBox(width: 14.w),
TextView(
text: "Info",
textStyle: titleStyle,
),
],
),
content: SizedBox(
//height: setHeight(132),
width: 332.w,
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
const Divider(
height: 0.5,
color: Pallet.grey,
),
SizedBox(height: 10.h),
TextView(
text: message,
textStyle: title3Style,
),
SizedBox(height: 40.h),
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
CustomOutlinedButtonWidget(
buttonText: "Continue",
height: 40.h,
width: 114.w,
onTap: () {
onContinue();
}),
],
),
],
),
),
);
});
}