Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Replace child parameter with builder on showDialog #15303
Changes the API of showDialog to take a Builder rather than any Widget. This change ensures that the dialog children are using the context from inside the dialog route, and not the context used to find the navigator.
This is a breaking change
If you require the BuildContext from the widget opening the dialog, you can always pass it through the Builder's closure.