showConfirmationDialog method
Implementation
Future<bool?> showConfirmationDialog(String message) async {
return await Get.dialog(
GenericDialogBox(
headerText: 'Confirmation',
isShowTopCloseButton: false,
content: SelectableText(
message,
textAlign: TextAlign.left,
style: const TextStyle(
fontSize: 15,
fontWeight: FontWeight.normal,
color: Colors.black,
),
),
primaryButtonText: 'Try Again',
secondaryButtonText: 'Continue',
onPrimaryButtonPressed: () {
Navigator.of(Get.context!).pop(true);
},
onSecondaryButtonPressed: () {
(retryPressCount < 3) ? null : Navigator.of(Get.context!).pop(false);
},
),
);
}