07 - AlertDialog |

Опубликовано: 11 Ноябрь 2023
на канале: 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


Смотрите видео 07 - AlertDialog | онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь TECHIE BLOSSOM 11 Ноябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 301 раз и оно понравилось 15 людям.