Companion

Companion with factory functions that start from an empty AdModifier.

Properties

Link copied to clipboard

An empty AdModifier with all defaults (no-op modifier).

Functions

Link copied to clipboard
fun alpha(alpha: Float): AdModifier

Factory: sets opacity.

Link copied to clipboard

Factory: sets aspect ratio.

Link copied to clipboard

Factory: sets a background colour.

Link copied to clipboard
fun border(width: Dp, color: Color, radius: Dp = 0.dp): AdModifier

Factory: draws a border with optional corner radius.

Link copied to clipboard

Factory: clips content to a circle.

Link copied to clipboard
fun clipRounded(radius: Dp): AdModifier

Factory: clips content with rounded corners.

Link copied to clipboard

Factory: clips content to bounds.

Link copied to clipboard
fun cornerRadius(radius: Dp): AdModifier

Factory: rounds corners and sets clip shape.

Link copied to clipboard
fun elevation(elevation: Dp): AdModifier

Factory: sets shadow elevation.

Link copied to clipboard

Factory: fills the available height.

Link copied to clipboard

Factory: fills both available width and height.

Link copied to clipboard

Factory: fills the available width.

Link copied to clipboard

Factory: makes the node gone (removed from layout).

Link copied to clipboard
fun height(height: Dp): AdModifier

Factory: sets a fixed height.

Link copied to clipboard
fun heightIn(min: Dp? = null, max: Dp? = null): AdModifier

Factory: sets height min/max constraints.

Link copied to clipboard

Factory: makes the node invisible (still occupies space).

Link copied to clipboard
fun margin(all: Dp): AdModifier

Factory: applies uniform margin on all sides.

fun margin(horizontal: Dp = 0.dp, vertical: Dp = 0.dp): AdModifier

Factory: applies horizontal and vertical margin.

fun margin(start: Dp = 0.dp, top: Dp = 0.dp, end: Dp = 0.dp, bottom: Dp = 0.dp): AdModifier

Factory: applies per-side margin.

Link copied to clipboard

Factory: fills both available width and height. Alias for fillMaxSize.

Link copied to clipboard
fun maxHeight(height: Dp): AdModifier

Factory: sets a maximum height.

Link copied to clipboard
fun maxWidth(width: Dp): AdModifier

Factory: sets a maximum width.

Link copied to clipboard
fun minHeight(height: Dp): AdModifier

Factory: sets a minimum height.

Link copied to clipboard
fun minWidth(width: Dp): AdModifier

Factory: sets a minimum width.

Link copied to clipboard
fun offset(x: Dp = 0.dp, y: Dp = 0.dp): AdModifier

Factory: applies an offset.

Link copied to clipboard
fun padding(all: Dp): AdModifier

Factory: applies uniform padding on all sides.

fun padding(horizontal: Dp = 0.dp, vertical: Dp = 0.dp): AdModifier

Factory: applies horizontal and vertical padding.

fun padding(start: Dp = 0.dp, top: Dp = 0.dp, end: Dp = 0.dp, bottom: Dp = 0.dp): AdModifier

Factory: applies per-side padding.

Link copied to clipboard
fun shadow(elevation: Dp): AdModifier

Factory: sets shadow elevation. Alias for elevation.

Link copied to clipboard
fun size(size: Dp): AdModifier

Factory: sets a fixed size (same width and height).

fun size(width: Dp, height: Dp): AdModifier

Factory: sets a fixed width and height.

Link copied to clipboard
fun sizeIn(minWidth: Dp? = null, minHeight: Dp? = null, maxWidth: Dp? = null, maxHeight: Dp? = null): AdModifier

Factory: sets width and height min/max constraints.

Link copied to clipboard

Factory: makes the node visible.

Link copied to clipboard
fun weight(weight: Float): AdModifier

Factory: sets flex weight.

Link copied to clipboard
fun width(width: Dp): AdModifier

Factory: sets a fixed width.

Link copied to clipboard
fun widthIn(min: Dp? = null, max: Dp? = null): AdModifier

Factory: sets width min/max constraints.

Link copied to clipboard

Factory: wraps content height.

Link copied to clipboard

Factory: wraps content width and height.

Link copied to clipboard

Factory: wraps content width.

Link copied to clipboard
fun zIndex(zIndex: Float): AdModifier

Factory: sets z-index (stacking order).