androidx.compose.foundation.layout

ContextualFlowColumnOverflowExperimentalDeprecated

Class · from org.jetbrains.compose.foundation:foundation-layout:1.12.2

No hand-written docs yet.

Overflow Handling Options

class ContextualFlowColumnOverflow : FlowLayoutOverflow

Is a

Properties

VisibleExperimental

val Visible: ContextualFlowColumnOverflow

Display all content, even if there is not enough space in the specified bounds.

ClipExperimental

val Clip: ContextualFlowColumnOverflow

Clip the overflowing content to fix its container.

Functions

expandIndicatorExperimental

fun expandIndicator(
    content: @Composable ContextualFlowColumnOverflowScope.() -> Unit,
): ContextualFlowColumnOverflow

Registers an "expand indicator" composable for handling overflow in a ContextualFlowColumn.

expandOrCollapseIndicatorExperimental

@Composable
fun expandOrCollapseIndicator(
    expandIndicator: @Composable ContextualFlowColumnOverflowScope.() -> Unit,
    collapseIndicator: @Composable ContextualFlowColumnOverflowScope.() -> Unit,
    minColumnsToShowCollapse: Int = 1,
    minWidthToShowCollapse: Dp = 0.dp,
): ContextualFlowColumnOverflow

Registers an "expand or collapse indicator" composable for handling overflow in a ContextualFlowColumn.

Library docs

Overflow Handling Options

This enumeration defines the available options for handling content that exceeds the boundaries of its container for ContextualFlowColumn.

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 to Clip, however shows an indicator or button indicating that more items can be loaded.
  • expandOrCollapseIndicator: Extends the expandIndicator functionality by adding a 'Collapse' option. After expanding the content, users can choose to collapse it back to the summary view.