07 - AlertDialog |

Publié le: 11 novembre 2023
sur la chaîne: TECHIE BLOSSOM
301
15

#shorts #flutter #alertdialog #widgets

You can invoke a alert dialog by just calling `showDialog` function.

Without any parameter, the alert dialog just pops up with no content. As you can see the screen has an overlay on top. It’s because of the dialog.

When you have only the title, you can see dialog with title.

You can also put in content to it.

You can either style the title and content in the Text widget itself or via these two style attributes. Can give padding as well to both.

Alert dialog can have icon and its style as well.

Inset padding acts as a gap between screen edges and the dialog edges. Radius can also be changed.

When you have elevation, the shadow color can be effective.

Other colors can also be changed.

And, then you can have action buttons as well.

And if there are action buttons that overflow, then we can customise how they will be laid out.

And lastly, default position of dialog is center. But, you can give alignment to change that.

Nominate as a Github Star: https://bit.ly/3dLXFWJ (@TechieBlossom)
Support Us in any of the below ways:
💜   / techieblossom  
💜 https://www.buymeacoffee.com/AGd0Xngci

Contributions:
👨🏻‍💻   / prateeksharma  
👨🏻‍💻 https://www.github.com/TechieBlossom

Feel free to connect with me:
🤝   / sharmaprateek7  
🤝 https://www.topmate.io/prateeksharma


Sur cette page du site, vous pouvez voir la vidéo en ligne 07 - AlertDialog | durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur TECHIE BLOSSOM 11 novembre 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 301 fois et il a aimé 15 téléspectateurs. Bon visionnage!