Skip to content

Не надежный способ вызова BottomSheet внутри Dialog #339

Description

@SerraMorec

В BottomSheet в классе BottomSheetState, нужно пересмотреть функцию show() , убрать delay.
Необходимо пересмотреть подход вызова BottomSheet так , чтоб anchors успевали рассчитываться для состояния HalfExpanded

suspend fun show() {
_dialogState.value = DialogState.Show
delay(100)
val targetValue = when {
hasHalfExpandedState -> HalfExpanded
else -> Expanded
}
animateTo(targetValue)
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions