Scrollable AlertDialog (No longer deprecated)

Summary

Context

Description of change

Migration guide

Timeline

References

Summary

An AlertDialog now scrolls automatically when it overflows.

Context

Before this change,
when an AlertDialog widget’s contents were too tall,
the display overflowed, causing the contents to be clipped.
This resulted in the following issues:

There was no way to view the portion of the content that was clipped.

Most alert dialogs have buttons beneath the content to prompt users for
actions. If the content overflowed, obscuring the buttons,
users might be unaware of their existence.

Description of change

The previous approach listed the title and content
widgets consecutively in a Column widget.

Column

mainAxisSize:

MainAxisSize

min