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

BottomSheet stack #14

Open
Lavmee opened this issue Jan 9, 2024 · 7 comments
Open

BottomSheet stack #14

Lavmee opened this issue Jan 9, 2024 · 7 comments

Comments

@Lavmee
Copy link
Contributor

Lavmee commented Jan 9, 2024

Is it possible to use several bottom sheets at the same time?

I tried nesting bottomsheetscaffold but there is an outline on a black background when the depth is greater than one.

@alexzhirkevich
Copy link
Owner

At it is a scaffold, currently only 1 sheet can be expanded with backdrop animation

@alexzhirkevich
Copy link
Owner

alexzhirkevich commented Jan 9, 2024

You can use box of scaffolds and remove Large detent from modal presentation of the 2nd sheet. Replace it with Fraction(1f) and you will have the same result without depth effect for the 2nd sheet.

@alexzhirkevich
Copy link
Owner

alexzhirkevich commented Jan 9, 2024

Tried nested scaffold and it works even better than i expected. The only issue is a white border around inner scaffold. I guess you mean it. This probably can be fixed. For now you can set container color of the inner scaffold to black/transparent and border won't be visible

@Lavmee
Copy link
Contributor Author

Lavmee commented Jan 9, 2024

I tried setting the inner container color to black, but the border still shows.

@alexzhirkevich
Copy link
Owner

I added it to scaffold itself, so probably color should be applied for both of them or the outer one

@Lavmee
Copy link
Contributor Author

Lavmee commented Jan 10, 2024

Thanks! it works

@alexzhirkevich
Copy link
Owner

Do you use Decompose for navigation in your app? I guess you do Precompose...
I'm thinking about sheet stack feature as a part of decompose integration.

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

No branches or pull requests

2 participants