How do I return a showDialog value in flutter?

You can access and use the value that comes from your dialog option like this: showDialog( context: context, builder: (context) => Dialog( val: vale, ), ). then((valueFromDialog){ // use the value as you wish print(valueFromDialog); });

Sizin İçin Seçtik  How do I use showDialog in flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *