belovance / QuickAlert

An instantly ready, full-featured alerts for development on any platform with flutter. Enabling you to complete projects and deploy quickly. With QuickAlert, you can display animated alert dialogs such as success, error, warning, confirm, loading or even a custom dialog.
https://pub.dev/packages/quickalert
MIT License
46 stars 42 forks source link

Function that handle click when using attributes : onConfirmBtnTap and onCancelBtnTap don't work and the alert window does not dispose or close #39

Open Cirecodeur opened 2 months ago

Cirecodeur commented 2 months ago

I try to use QuickAlert.confirm on a drawer. When I use function that handle click when using attributes : onConfirmBtnTap and onCancelBtnTap, it's doesn't work and the alert window does not dispose or close I use QuickAlert.show( context: context, type: QuickAlertType.confirm, title: "Confirm action", text: 'Do you want to log out?', confirmBtnText: 'oui', cancelBtnText: 'Non', confirmBtnColor: Colors.green, onConfirmBtnTap: (){ print("Yes"); logout(); Navigator.pop(context);

              });

Expected behavior I want the function set to attribute onConfirmBtnTap to be executed and to dispose of the QuickAlert window.

Smartphone