You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dialog.fullscreen should set a parentRoute.fullscreenDialog #165478
I am showing a dialog using the Dialog.fullscreen constructor, but when I do it and I have an AppBar inside the dialog, then the AppBar will show a BackButton and not a CloseButton.
This happens because the AppBar automatically selects it's button based on parentRoute.fullscreenDialog, which showDialog nor showGeneralDialog set to true, since they don't create a PageRoute but a RawDialogRoute that doesn't have this flag available.
Proposal
showDialog and it's variants like showGeneralDialog should have an optional parameter fullscreenDialog that can be forwarded (and added) to RawDialogRoute and DialogRoute, so the AppBar could automatically detect if it's current route is a full-screen one.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
Feat: Add full screen dialog support for dialog routes (#167794)
github-actions commentedon Jun 4, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.