flutter_cool_alert icon indicating copy to clipboard operation
flutter_cool_alert copied to clipboard

autoCloseDuration

Open hdamis opened this issue 2 years ago • 0 comments

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.

hdamis avatar May 16 '23 14:05 hdamis