LayoutFunction2

A layout function for a container with exactly two children, which it receives by name.

Functions

Link copied to clipboard

The tallest this container would like to be at width, ignoring any upper bound.

Link copied to clipboard
open fun IntrinsicMeasureScope.maxIntrinsicWidth(measurables: List<Measurable>, height: Int): Int

The widest this container would like to be at height, ignoring any upper bound.

Link copied to clipboard
open override fun MeasureScope.measure(measurables: List<Measurable>, constraints: SizeConstraints)

Measure the children, then say how big this container is and where each child goes.

abstract fun MeasureScope.measure(child1: Measurable, child2: Measurable, constraints: SizeConstraints)
Link copied to clipboard

The shortest this container can be at width. The other axis of minIntrinsicWidth.

Link copied to clipboard
open fun IntrinsicMeasureScope.minIntrinsicWidth(measurables: List<Measurable>, height: Int): Int

The narrowest this container can be at height without its content breaking out of it.