existAppDialog function
dynamic
existAppDialog()
Implementation
existAppDialog() {
return commonDialogs(
dismiss: false,
body: Column(
children: [
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Container(
padding: EdgeInsets.all(margin_8),
decoration: const BoxDecoration(
shape: BoxShape.circle, color: primaryColor),
child: const Icon(
Icons.question_mark,
color: Colors.white,
),
),
sizedBox(width: margin_20),
commonText(exitAppStr.tr,
fontWeight: FontWeight.w500,
color: subtitleColor,
textHeight: 1.4,
align: TextAlign.center,
fontSize: font_16),
],
),
sizedBox(height: margin_20),
commonText(exitStr.tr,
fontWeight: FontWeight.w400,
color: subtitleColor,
textHeight: 1.4,
align: TextAlign.center),
sizedBox(height: margin_20),
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
CustomButton(
onClick: () {
Get.back();
},
buttonColor: primaryColor,
cornerRadius: radius_30,
verticalPadding: margin_4,
horizontalPadding: margin_24,
buttonText: noStr.tr,
),
sizedBox(width: margin_16),
CustomButton(
onClick: () {
if (Platform.isIOS) {
exit(0);
}
if (Platform.isAndroid) {
SystemNavigator.pop();
}
},
buttonColor:primaryColor,
cornerRadius: radius_30,
verticalPadding: margin_4,
horizontalPadding: margin_24,
buttonText: yesStr.tr,
)
],
)
],
));
}