Package-level declarations

Properties

Link copied to clipboard

Determines whether we're in debug mode. This should not be used in the bridge for logging; instead, you should use the IDE logger.

Functions

Link copied to clipboard
fun Color.Companion.fromRGBAHexStringOrNull(rgba: String): Color?

Converts a RGBA formatted color #RRGGBBAA hex string to a Color; e.g., #FFFFFF1A (a translucent white).

Link copied to clipboard
fun Color.isDark(): Boolean

Heuristically determines if the color can be thought of as "dark".

Link copied to clipboard
inline fun Modifier.thenIf(precondition: Boolean, action: Modifier.() -> Modifier): Modifier

Conditionally applies the action to the receiver Modifier, if precondition is true. Returns the receiver as-is otherwise.

Link copied to clipboard
fun Color.toRgbaHexString(): String

Converts a Color to a RGBA formatted color #RRGGBBAA hex string; e.g., #FFFFFF1A (a translucent white).