07 - AlertDialog |

Veröffentlicht am: 11 November 2023
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video 07 - AlertDialog | mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer TECHIE BLOSSOM 11 November 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 301 Mal angesehen und es wurde von 15 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!