#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
Watch video 07 - AlertDialog | online without registration, duration hours minute second in high quality. This video was added by user TECHIE BLOSSOM 11 November 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 301 once and liked it 15 people.