Skip to content

Instantly share code, notes, and snippets.

@KatieBarnett
Created December 22, 2023 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KatieBarnett/099256dc09ac07e1850ad4d4fd4c667e to your computer and use it in GitHub Desktop.
Save KatieBarnett/099256dc09ac07e1850ad4d4fd4c667e to your computer and use it in GitHub Desktop.
Updated rememberModalBottomSheetState
val addSheetState = rememberModalBottomSheetState(
confirmValueChange = {
if (it == SheetValue.Hidden) {
showConfirmChanges = true
false
} else {
// We're expanding the sheet so we always return true
true
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment