marcos930807 / awesomeDialogs

A new Flutter package project for simple a awesome dialogs
Other
340 stars 109 forks source link

add enable and disable buttons options for Ok and Cancel btn - improvements #26

Closed robertoltrocha closed 4 years ago

robertoltrocha commented 4 years ago

Hi, I would like to thank you for your package and would like to ask if it is possible to include the option of enable and disable for the buttons? I would like to enable and disable the buttons under some conditions. For example, after clicking on a checkbox agreeing to the terms, the Ok button would be enabled.

marcos930807 commented 4 years ago

hi @robertoltrocha for the moment a workaround could be have your own buttons inside the body make it stateFull Widget and manage yourselve the logic to enabe and disable those button on certain events. Edit 1 Even you could use AnimatedButtons iside the library.

robertoltrocha commented 4 years ago

thanks for your answer and workaround. I will do this.