AspectRatioModifierFieldValue
ModifierFieldValue that applies an aspect ratio constraint to a composable.
Parameters
ratio
The aspect ratio value (width/height). For example, 1.0f for square, 16/9f for widescreen.
Types
Link copied to clipboard
class Factory(initialRatio: Float? = null) : ModifierFieldValueFactory<AspectRatioModifierFieldValue>
Factory for creating AspectRatioModifierFieldValue instances with configurable initial values.
Functions
Link copied to clipboard
Renders the UI builder interface for configuring this modifier. This composable is typically displayed in the Preview Lab control panel.
Link copied to clipboard
Creates a modifier from this field value.
Link copied to clipboard
Combines this modifier field value with another to create a list.