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
Do you think creating a new FullscreenDialog widget is the way to go to make it work out of the box? or perhaps adding something like Dialog.fullscreen().
We can create a fullscreen dialog using Dialog widget with some zero insetPadding and a Scaffold. If this is sufficient, we can close this issue.
It's getting there but you're right, it's not quite up to spec, given the fullscreen_dialog specs and tokens. Now I think matching the specs is the way perhaps with Dialog.fullscreen()
In the Flutter context, AlertDialog is the dialog that provides the ability title, message, and actions buttons and the M3 Fullscreen dialog is similar to that but of course fullscreen.
Also, AlertDialog has quite many parameters that are not related to Fullscreen Dialog
In this case, creating a new FullscreenDialog makes more sense to me (Dialog being unopinionated means it has none of the features to support M3 tokens)
Previously I migrated AlertDialog to M3 with tokens.
Agreed that AlertDialog isn't the way to go for this. Since Dialog
In this case, creating a new FullscreenDialog makes more sense to me (Dialog being unopinionated means it has none of the features to support M3 tokens)
I'm not sure I understand this. Since Dialog is so close, wouldn't it make more sense to migrate it? We could have Dialog.fullscreen which sets insetPadding and a new padding or contentPadding to match spec, leaving the rest up to users.
Also, if you overlay the sample with the spec, is the padding around the button the only padding difference?
I'm not sure I understand this. Since Dialog is so close, wouldn't it make more sense to migrate it? We could have Dialog.fullscreen which sets insetPadding and a new padding or contentPadding to match spec, leaving the rest up to users.
That's what I thought at first, given Android doesn't provide a concrete fullscreen implementation.
According to Dialogs - Full-screen dialogs and tokens, there needs to be a header with the title with app bar like height, the closing icon, and action text button and it should also elevate on the scroll and a divider.
AlertDialog follows its specs so should fullscreen dialog given the similar tokens and specs above?
Could we leave all this full-screen dialog design for the users to match the specs?
I think the new FullscreenDialog that matches specs and uses the tokens to style header, icon, action button, and the divider is probably good? or I can create Dialog.fullscreen, and let the user create their header and divider using the AppBar widget?
Both options are valid, but I suspect the customizeability of full screen dialogs is more important than providing an exact match to spec. I'd lean towards the Dialog.fullscreen approach.
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
HansMuller commentedon Jun 2, 2022
Part of #91605
TahaTesser commentedon Jun 16, 2022
This is required for #106101, looking at what is needed to make this feature possible.
TahaTesser commentedon Jul 13, 2022
cc: @guidezpl @darrenaustin
Do you think creating a new
FullscreenDialogwidget is the way to go to make it work out of the box? or perhaps adding something likeDialog.fullscreen().We can create a fullscreen dialog using Dialog widget with some zero
insetPaddingand a Scaffold. If this is sufficient, we can close this issue.Code Sample
Screen.Recording.2022-07-13.at.13.49.40.mov
guidezpl commentedon Jul 13, 2022
It does look very close, but not quite up to spec (save button padding). I do like
Dialog.fullscreen()for this kind of case.Can you add some content to the example? I'd like to see how close to spec we are by default.
TahaTesser commentedon Jul 14, 2022
It's getting there but you're right, it's not quite up to spec, given the fullscreen_dialog specs and tokens. Now I think matching the specs is the way perhaps with
Dialog.fullscreen()Code Sample
TahaTesser commentedon Jul 14, 2022
Dialog is actually an unopinionated dialog.
In the Flutter context, AlertDialog is the dialog that provides the ability title, message, and actions buttons and the M3 Fullscreen dialog is similar to that but of course fullscreen.
Also, AlertDialog has quite many parameters that are not related to Fullscreen Dialog
In this case, creating a new
FullscreenDialogmakes more sense to me (Dialogbeing unopinionated means it has none of the features to support M3 tokens)Previously I migrated AlertDialog to M3 with tokens.
guidezpl commentedon Jul 14, 2022
Agreed that AlertDialog isn't the way to go for this. Since Dialog
I'm not sure I understand this. Since
Dialogis so close, wouldn't it make more sense to migrate it? We could haveDialog.fullscreenwhich setsinsetPaddingand a newpaddingorcontentPaddingto match spec, leaving the rest up to users.Also, if you overlay the sample with the spec, is the padding around the button the only padding difference?
TahaTesser commentedon Jul 15, 2022
That's what I thought at first, given Android doesn't provide a concrete fullscreen implementation.
According to Dialogs - Full-screen dialogs and tokens, there needs to be a header with the title with app bar like height, the closing icon, and action text button and it should also elevate on the scroll and a divider.
AlertDialogfollows its specs so should fullscreen dialog given the similar tokens and specs above?Could we leave all this full-screen dialog design for the users to match the specs?
I think the new
FullscreenDialogthat matches specs and uses the tokens to style header, icon, action button, and the divider is probably good? or I can createDialog.fullscreen, and let the user create their header and divider using theAppBarwidget?guidezpl commentedon Jul 15, 2022
Both options are valid, but I suspect the customizeability of full screen dialogs is more important than providing an exact match to spec. I'd lean towards the
Dialog.fullscreenapproach.1 remaining item
pedromassango commentedon Aug 22, 2022
I was about to file a new issue for this :) Is someone working on this up?
TahaTesser commentedon Aug 22, 2022
@pedromassango
I have the code ready to be filed. (I was on vacation and working on higher priority issues).
TahaTesser commentedon Aug 22, 2022
@pedromassango
I have implemented
Dialog.fullscreenbased on the discussion. I will file the PR soon and would like it if you could take a look.pedromassango commentedon Aug 22, 2022
That is great 🏅
TahaTesser commentedon Sep 22, 2022
Update:
Didn't forget about this. I was focused on getting some existing PRs merged.
Filing this dialog tomorrow.
github-actions commentedon Oct 13, 2022
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.