androidx.compose.foundation.layout

FlowRowOverflowExperimentalDeprecated

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

No hand-written docs yet.

Overflow Handling Options

class FlowRowOverflow : FlowLayoutOverflow

Is a

Properties

VisibleExperimental

val Visible: FlowRowOverflow

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

ClipExperimental

val Clip: FlowRowOverflow

Clip the overflowing content to fix its container.

Functions

expandIndicatorExperimental

fun expandIndicator(
    content: @Composable FlowRowOverflowScope.() -> Unit,
): FlowRowOverflow

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

expandOrCollapseIndicatorExperimental

@Composable
fun expandOrCollapseIndicator(
    expandIndicator: @Composable FlowRowOverflowScope.() -> Unit,
    collapseIndicator: @Composable FlowRowOverflowScope.() -> Unit,
    minRowsToShowCollapse: Int = 1,
    minHeightToShowCollapse: Dp = 0.dp,
): FlowRowOverflow

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

Library docs

Overflow Handling Options

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

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.