Hi,
I am trying to autoCloseDuration if the user didn't clicked on the ok button during 5 seconds,
CoolAlert.show(
context: context,
type: CoolAlertType.success,
title: 'hello' ,
text: "Thanks for choosing us",
closeOnConfirmBtnTap: false,
onConfirmBtnTap: () async {
Navigator.of(context).pop();
},
autoCloseDuration: const Duration(seconds: 5),
);
but when the user clicked on ok after 5 seconds the app crashed. any idea.
Hi,
I am trying to autoCloseDuration if the user didn't clicked on the ok button during 5 seconds,
CoolAlert.show(
context: context,
type: CoolAlertType.success,
title: 'hello' ,
text: "Thanks for choosing us",
but when the user clicked on ok after 5 seconds the app crashed. any idea.