three-level linkage
Hello, how can I extend the effect of three-level linkage ?
Hi, not very clear about this effect, any further details about the three-level linkage effect?
Closed = dismiss, Peeked = 10% Half = 50% Full = 90%
- Peeked state supports a friction height
PeekHeight.fraction(Float). - There is no Half state here, the default Peeked state is a Half state since its peek height is
PeekHeight.fraction(0.5f). - The height of the Expanded state is the same height as the sheet content, so you can use
Modifier.fillMaxHeight(friction)for your content.
Hi! It's possible swipe with finger to not only 3 states, but more? Just like topicstarter asked? Closed = dismiss, Peeked = 10% Half = 50% Full = 90% like here
enum class HideableBottomSheetValue {
Hidden,
HalfExpanded,
Expanded;
val draggableSpaceFraction: Float
get() = when (this) {
Hidden -> 0f
HalfExpanded -> 0.5f
Expanded -> 1f
}
}
And for example add NotSoHidden -> 0.1
@borisphen I'd say no, currently, that's not possible. It was designed to have only three states, and the current API is difficult to change to meet this requirement. Might make it accept an anchor list on the next rewrite.
Thanks for your response!