Package-level declarations

Types

Link copied to clipboard

The edge to use with fadingEdge modifier.

Link copied to clipboard

Defines available modes for the flip modifier

Functions

Link copied to clipboard
fun Modifier.fadingEdge(fadingEdge: FadingEdge, size: Dp, rtlAware: Boolean = false): Modifier

Makes this widget "fade out" into transparency over specified size. The edge specified by fadingEdge will be faded only.

Link copied to clipboard

Flip this composable using direction

fun DrawTransform.flip(direction: FlipDirection?, pivot: Offset = center)

Flip this canvas using direction and pivot point

inline fun DrawScope.flip(direction: FlipDirection?, pivot: Offset = center, block: DrawScope.() -> Unit)

Create a new draw transform scope for block, flipping the contents using direction]

Link copied to clipboard

Apply 0-saturation color transformation to this composable, rendering it grayscale.

Link copied to clipboard
fun Modifier.noIndicationClickable(enabled: Boolean = true, onClickLabel: String? = null, role: Role? = null, interactionSource: MutableInteractionSource? = null, onClick: () -> Unit): Modifier

Add a clickable modifier that has no indication (no ripple)

Link copied to clipboard
inline fun Modifier.thenIf(condition: Boolean, ifFalse: Modifier.() -> Modifier = { this }, ifTrue: Modifier.() -> Modifier): Modifier

Apply the ifTrue block to the modifier chain only if the condition is true, otherwise apply ifFalse (nothing additional by default)

Link copied to clipboard
inline fun <T> Modifier.thenIfNotNull(value: T, ifNull: Modifier.() -> Modifier = { this }, block: Modifier.(T & Any) -> Modifier): Modifier

Apply the block to the modifier chain only if the value is not null, otherwise apply ifNull (nothing additional by default)

Link copied to clipboard

Tint the composable with the provided brush. This will draw over any pixels that are not completely transparent in the source composable. For example, this can be used to tint over icons or any other complex shapes.

Tint the composable with the provided color. This will draw over any pixels that are not completely transparent in the source composable. For example, this can be used to tint over icons or any other complex shapes.