https://kotlinlang.org logo
#compose
Title
# compose
b

brabo-hi

10/07/2021, 12:05 AM
Hi, when using
bottomSheet
from
accompagnist
how can we set or control the default
modalSheetValue
??
i

Ian Lake

10/07/2021, 1:05 AM
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?
b

brabo-hi

10/07/2021, 1:33 AM
@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

10/07/2021, 2:43 AM
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
👍 1
6 Views