FlowRow

fun TileSchemaBuilderScope.FlowRow(id: String = randomId(), events: EventSchemaBuilderScope.() -> Unit = {}, style: StyleSchemaBuilderScope.() -> Unit = {}, visibility: TileSchema.Visibility = visible(), searchableTerms: List<String>? = null, filterChildrenByTerm: String? = null, horizontalArrangement: ArrangementSchema.Horizontal = arrangeHorizontallyToStart(), verticalArrangement: ArrangementSchema.Vertical = arrangeVerticallyToTop(), maxItemsInEachRow: Int = Int.MAX_VALUE, tiles: TileSchemaBuilderScope.() -> Unit)

Renders a Compose FlowRow laying tiles out horizontally and wrapping onto new lines when they no longer fit. horizontalArrangement spaces items within a line, verticalArrangement spaces the lines themselves, and maxItemsInEachRow caps how many children a single line may hold (unlimited by default). Publishes its flow-row scope to children so they can use modifiers such as weight and fillMaxRowHeight. When filterChildrenByTerm is set, only children whose searchableTerms contain that term (case-insensitive substring match) are rendered — children without searchableTerms are filtered out. Never scrollable — every child is composed eagerly. Dispatches onDisplay once when composed, onClick only when declared.

Parameters

id

Unique identifier of the tile. Defaults to a random id.

events

Events owned by this tile, wired to its triggers (onDisplay, onClick).

style

Layout/appearance modifiers (size, padding, background, etc).

visibility

Whether the tile is shown, hidden but occupies space, or removed from layout. Defaults to visible.

searchableTerms

Terms used by an ancestor's search/filter to decide whether this tile matches. Defaults to none.

filterChildrenByTerm

Term used to filter tiles by their own searchableTerms. Defaults to none (no filtering).

horizontalArrangement

Spacing of items within a line. Defaults to arranged to the start.

verticalArrangement

Spacing between wrapped lines. Defaults to arranged to the top.

maxItemsInEachRow

Maximum number of children allowed on a single line. Defaults to unlimited.

tiles

Child tiles laid out horizontally, wrapping onto new lines as needed.