Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show non-modal sheet above and under a BottomAppBar #20

Open
jordond opened this issue Feb 25, 2024 · 1 comment
Open

Show non-modal sheet above and under a BottomAppBar #20

jordond opened this issue Feb 25, 2024 · 1 comment

Comments

@jordond
Copy link

jordond commented Feb 25, 2024

Is your feature request related to a problem?

I am trying to use FlexibleBottomSheet on a screen that uses Scaffold and bottomBar. When I add the FlexibleBottomSheet to the screen it sits on top of the NavigationBar.

image

Using the following state:

rememberFlexibleBottomSheetState(
      isModal = false,
      skipSlightlyExpanded = true,
       flexibleSheetSize = FlexibleSheetSize().copy(
          fullyExpanded = 0.5f,
          intermediatelyExpanded = 0.05f, 
     )
)

Describe the solution you'd like:

I would like the sheet to be displayed below and above the NavigationBar. Basically sitting on top of it with a tiny amount visible, then expanding when the user drags up.

Describe alternatives you've considered:

I've tried adding Modifier.padding() but that causes the whole thing to vanish. I'm looking into setting the WindowInsets next.

@jordond
Copy link
Author

jordond commented Feb 26, 2024

I was able to get the partially expanded state above the NavigationBar using BottomSheetDefaults.windowInsets.add(WindowInsets(bottom = 64.dp)).

But the issue of it drawing on top of the

NavigationBar is still a problem:

Screen.Recording.2024-02-25.at.7.15.21.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant