Package-level declarations

Functions

Link copied to clipboard
fun Autofill(autofillTypes: ImmutableList<AutofillType>, onFill: (String) -> Unit, content: @Composable (AutofillNode) -> Unit, modifier: Modifier = Modifier)

Add autofill support to a given Composable

Link copied to clipboard
fun Modifier.dashedBorder(border: BorderStroke, shape: Shape = RectangleShape): Modifier

Modify element to add border with appearance specified with a border and a shape, pad the content by the BorderStroke.width and clip it.

fun Modifier.dashedBorder(width: Dp, color: Color, shape: Shape = RectangleShape): Modifier

Returns a Modifier that adds border with appearance specified with width, color and a shape, pads the content by the width and clips it.

Link copied to clipboard
inline fun Modifier.ifFalse(predicate: Boolean, builder: Modifier.() -> Modifier): Modifier

Modifier to make it easy to conditionally add a modifier based on predicate

Link copied to clipboard
inline fun <T : Any> Modifier.ifNotNull(value: T?, builder: Modifier.(T) -> Modifier): Modifier

Modifier to make it easy to conditionally add a modifier based on value nullability

Link copied to clipboard
inline fun <T : Any> Modifier.ifNull(value: T?, builder: Modifier.() -> Modifier): Modifier

Modifier to make it easy to conditionally add a modifier based on value nullability

Link copied to clipboard
inline fun Modifier.ifTrue(predicate: Boolean, builder: Modifier.() -> Modifier): Modifier

Modifier to make it easy to conditionally add a modifier based on predicate

Link copied to clipboard

Ignore the parent padding by horizontalPadding. Be careful since concretely it makes the maxWidth bigger which could make this composable clipped by the parent width if misused

Link copied to clipboard

Reserves at least 44.dp in size to disambiguate touch interactions if the element would measure smaller.