skydoves / FlexibleBottomSheet

🐬 Advanced Compose Multiplatform bottom sheet for segmented sizing, non-modal type, and allows interaction behind the bottom sheet similar to Google Maps.
Apache License 2.0
791 stars 36 forks source link

When isModal is true screen turns white instead of dimmed #58

Closed carvalho2707 closed 1 month ago

carvalho2707 commented 2 months ago

Please complete the following information:

Describe the Bug: When I set my BottomSheet to isModal = true the screen content( Except the bottom sheet) turns white instead of just dimmed. This issue doesn't happen with isModal=false

Add a clear description about the problem.

Expected Behavior:

A clear description of what you expected to happen. When a modal is created the rest of the screen should change the color to be slightly dimmed to focus the attention on the bottom sheet instead

carvalho2707 commented 2 months ago

Screenshot_20240906_094339

skydoves commented 2 months ago

Hey @carvalho2707, does this happens on the demo project as well? If not, what's your codebase?

skydoves commented 2 months ago

Have you ever adjusted the scrim color of your material theme? because the flexible bottom sheet uses the scrim color of the material theme below:

MaterialTheme.colorScheme.scrim.copy(alpha = 0.32f)