-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
sheetState isModal not updating #13
Comments
Hey @Sandeep03edu, the example you shared with me is quite confusing. Would you elaborate on this? If you want to still interact with the background content when your bottom sheet is visible (non-modal), you should give |
@skydoves I am making the bottom sheet visible when composable is open for the first time, that's why I set the isModal as true. I am implementing the same feature as Instagram's post share button menu |
I guess you mean this kind of implementation. var isShowing by remember { mutableStateOf(true) }
if (isShowing) {
FlexibleBottomSheet(
onDismissRequest = {
isShowing = false
},
sheetState = rememberFlexibleBottomSheetState(isModal = true),
) {
Text(text = "Bottom Sheeeet!!!")
}
} |
Thanks @skydoves it worked, But I wonder why the sheetState's isModal was not updated in my method? |
All those properties that are placed inside the You can also change the visibility of your bottom sheet by giving the FlexibleBottomSheet(
modifier = Modifier.alpha(1.0f),
.. I'm closing this issue. If you still face any other issues, please share them with me. Thanks! |
sheetState isModal is not updating when changed during onTargetChanges function
While printing the logs i found below result
SheetValue: Hidden || IsModal:: false || sheetModal :: true
I want my bottom sheet to behave as Modal only when it is not hidden i.e., visible
If I set isModal as true, then I am not able to access the background content when the sheet is hidden/removed by the user.
Am i missing anything?
The text was updated successfully, but these errors were encountered: