marcos930807 / awesomeDialogs

A new Flutter package project for simple a awesome dialogs
Other
339 stars 110 forks source link

Is it possible to refresh dialog content while it is shown ? #61

Closed ben55j closed 3 years ago

ben55j commented 3 years ago

Hello,

I am using the Dialog with a custom body, to display a counter of quantity (text & buttons). My problem is that the text widget is not update dynamically while the dialog is shown. Do you have an idea how I can handle it?

Many thanks, Benjamin AlertDialog

marcos930807 commented 3 years ago

hi @ben55j, thanks for the positive feedback. Make de Body of the dialog a stateful widget, then handle its state using set state or alternative use a stateless with another management state solution like Provider, Bloc etc. If you need more help you can share a piece of code, and I can help you.

ben55j commented 3 years ago

Thank you Marco for your fast reply and for your help 🙏🏻! I will try that asap and let you know.

Best Ben Le 20 janv. 2021 à 16:42 +0100, Marcos Rodriguez Toranzo notifications@github.com, a écrit :

hi @ben55j, thanks for the positive feedback. Make de Body of the dialog a stateful widget, then handle its state using set state or alternative use a stateless with another management state solution like Provider, Bloc etc. If you need more help you can share a piece of code, and I can help you. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.