google / accompanist

A collection of extension libraries for Jetpack Compose
https://google.github.io/accompanist
Apache License 2.0
7.34k stars 593 forks source link

[Navigation Material] #1683

Closed VahidGarousi closed 9 months ago

VahidGarousi commented 1 year ago

I want to use bottom sheet 1- In some of them, I can disable the ability of the user to click outside the dialog. 2- In some others, I can activate it so that it can be closed by clicking on the area outside the dialog.

How do I do this?

    val bottomSheetNavigator = rememberBottomSheetNavigator()
    val navController = rememberNavController(bottomSheetNavigator)

 ModalBottomSheetLayout(
        bottomSheetNavigator = bottomSheetNavigator,
        sheetBackgroundColor = Color.Transparent,
    ) {
Scaffold()} {
// NAvHost() {
navigation() {

composable() {
Screen
}

bottomSheet() {
Bottom Sheet1, i want to dismiss this bottom sheet when i click out side of this bottom sheet
 }

bottomSheet() {
Bottom Sheet2, i don't want to dismiss this bottom sheet when i click out side of this bottom sheet
 }
}
VahidGarousi commented 12 months ago

No answer?

github-actions[bot] commented 10 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

VahidGarousi commented 10 months ago

comment :)

ianhanniballake commented 9 months ago

Duplicate of #730, which also covers the cancellation of the dialog when tapping outside of it or using system back.