Percentage

data class Percentage(val fraction: Float) : FlexBasis(source)

A fraction of the container's main axis size used as the flex basis. E.g. Percentage(0.5f) = 50% of the container width (row) or height (column). Falls back to Auto behaviour when the container is unconstrained. Mirrors CSS flex-basis: <percentage>.

Constructors

Link copied to clipboard
constructor(fraction: Float)

Properties

Link copied to clipboard

Value between 0.0 and 1.0.