Skip to content

autoCloseDuration #36

@hdamis

Description

@hdamis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions