androidx.compose.foundation.layout
ContextualFlowRowOverflowExperimentalDeprecated
Class · from org.jetbrains.compose.foundation:foundation-layout:1.12.2
No hand-written docs yet.
Overflow Handling Options
class ContextualFlowRowOverflow : FlowLayoutOverflow
Is a
Properties
VisibleExperimental
val Visible: ContextualFlowRowOverflow
Display all content, even if there is not enough space in the specified bounds.
ClipExperimental
val Clip: ContextualFlowRowOverflow
Clip the overflowing content to fix its container.
Functions
expandIndicatorExperimental
fun expandIndicator(
content: @Composable ContextualFlowRowOverflowScope.() -> Unit,
): ContextualFlowRowOverflow
Registers an "expand indicator" composable for handling overflow in a ContextualFlowRow.
expandOrCollapseIndicatorExperimental
@Composable
fun expandOrCollapseIndicator(
expandIndicator: @Composable ContextualFlowRowOverflowScope.() -> Unit,
collapseIndicator: @Composable ContextualFlowRowOverflowScope.() -> Unit,
minRowsToShowCollapse: Int = 1,
minHeightToShowCollapse: Dp = 0.dp,
): ContextualFlowRowOverflow
Registers an "expand or collapse indicator" composable for handling overflow in a ContextualFlowRow.
Library docs
Overflow Handling Options
This enumeration defines the available options for handling content that exceeds the boundaries
of its container for ContextualFlowRow.
Options:
Visible: The overflowing content remains visible outside its container. This can lead to overlapping with other elements. Use this option when it's crucial to display all content, regardless of the container's size.Clip: The overflowing content is clipped and not visible beyond the boundary of its container. Ideal for maintaining a clean and uncluttered UI, where overlapping elements are undesirable.expandIndicator: Behaves similar toClip, however shows an indicator or button indicating that more items can be loaded.expandOrCollapseIndicator: Extends theexpandIndicatorfunctionality by adding a 'Collapse' option. After expanding the content, users can choose to collapse it back to the summary view.