Thread
#compose
    brabo-hi

    brabo-hi

    11 months ago
    Hi, when using
    bottomSheet
    from
    accompagnist
    how can we set or control the default
    modalSheetValue
    ??
    i

    Ian Lake

    11 months ago
    Do you mean Accompanist Navigation Material? The state is controlled by the NavController, so you navigate to a bottom sheet destination to make it appear and pop the destination to hide it. You don't directly set any value. What are you trying to do?
    brabo-hi

    brabo-hi

    11 months ago
    @Ian Lake when i navigate to a bottomsheet (accompanist navigation), it opens a bottomsheet with the state halfExtended what i want to do is to have a button that can change it state to extented
    i

    Ian Lake

    11 months ago
    I'd suggest commenting on this related issue of having it start fully expanded by default: https://github.com/google/accompanist/issues/657 - that would be where we'd offer control over that kind of state