Hi! Today I updated Compose libraries in my projec...
# compose
r
Hi! Today I updated Compose libraries in my project and now I can’t change bottom sheet value from
Hidden
to
HalfExpanded
by using
{ scope.launch { sheetState.animateTo(ModalBottomSheetValue.HalfExpanded) } }
because
animateTo
is internal now. What’s the approach now?
1
j
As per the release notes, animateTo has been made internal in favor of
show
and
hide
as they follow the Material spec. If the sheet has a half expanded state,
show
will open it up to HalfExpanded, or Expanded if there's no HalfExpanded state