Skip to content

Commit 7a91098

Browse files
committed
add withDismissAction to snackbar example
1 parent c5c0b45 commit 7a91098

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ fun ScaffoldSnackbarResultDemo() {
260260
.showSnackbar(
261261
message = "Snackbar",
262262
actionLabel = "Action",
263+
withDismissAction = true,
263264
// Defaults to SnackbarDuration.Short
264265
duration = SnackbarDuration.Indefinite
265266
)

0 commit comments

Comments
 (0)