How do I make a full screen dialog respect a foldable's navigation bar? #4683
Unanswered
chokokatana
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is probably a fresher version of #4049. I've posted the question on stackoverflow but my SEO sucks, so I'm trying here now:
I have the following simple code that draws a blue dialog with a yellow square:
However, if I modify the dialog's
usePlatformDefaultWidth
to false, I get a Dialog which hides beneath the navigation bar:How can I make the dialog respect the navigation bar insets/paddings when
usePlatformDefaultWidth
is set to false? Note how the Column inside the Dialog is calling.navigationBarsPadding()
, to no effect. Also, I've tried to useWindowInsets
inside the dialog and log its values but everything is zero, as if the Dialog is oblivious to the navigation bar, so I don't know how I can compensate this.Beta Was this translation helpful? Give feedback.
All reactions