Skip to content

Commit 3bbac16

Browse files
authored
Update package name and android_compose_layout_material_bottom_sheet2 snippet. (#79)
* Update package name and android_compose_layout_material_bottom_sheet2 snippet. * Apply Spotless --------- Co-authored-by: arriolac <arriolac@users.noreply.github.com>
1 parent 714b86b commit 3bbac16

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/layouts/MaterialLayoutSnippets.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.example.compose.snippets.layout
17+
package com.example.compose.snippets.layouts
1818

1919
import androidx.compose.foundation.layout.Box
2020
import androidx.compose.foundation.layout.PaddingValues
@@ -396,7 +396,9 @@ fun BottomSheetDemo() {
396396

397397
if (showBottomSheet) {
398398
ModalBottomSheet(
399-
onDismissRequest = { /* Executed when the sheet is dismissed */ },
399+
onDismissRequest = {
400+
showBottomSheet = false
401+
},
400402
sheetState = sheetState
401403
) {
402404
// Sheet content

0 commit comments

Comments
 (0)