Dialogs' Default BorderRadius

Summary

Context

Migration guide

Timeline

References

Summary

Context

Dialogs and their associated subclasses (SimpleDialog, AlertDialog, and
showTimePicker), appears slightly different as the border radius is larger. if you
have master golden file images that have the prior rendering of the Dialog with a
2.0 pixel border radius, your widget tests will fail. These golden file images can
be updated to reflect the new rendering, or you can update your code to maintain the
original behavior.

The showDatePicker dialog already matched this specification and is unaffected by this change.

Migration guide

If you would prefer to maintain the old shape, you can use the shape property of your
Dialog to specify the original 2.0 pixel radius.

Setting the Dialog shape to the original radius:

import

'package:flutter/material.dart'