Package-level declarations

Types

Link copied to clipboard
data class FlexLayoutParentData(var weight: Float = 0.0f, var crossAxisFlex: Float = 0.0f, var mainAxisSize: Dp = 0.dp)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class PanAndScaleState(initialScale: Float = 1.0f, initialPan: DpOffset = DpOffset.Zero, val minScale: Float = 0.1f, val maxScale: Float = 1.0f)

UI Tests:

Functions

Link copied to clipboard
fun FixedTableRow(columnSizes: List<Float>, horizontalArrangement: Arrangement.Horizontal = Arrangement.Start, verticalAlignment: Alignment.Vertical = Alignment.Top, modifier: Modifier = Modifier, content: @Composable () -> Unit)

FixedTableRow specifies a row with columns of fixed width based on the passed in percentage

Link copied to clipboard
fun FlexRow(modifier: Modifier = Modifier, horizontalArrangement: Arrangement.Horizontal = Arrangement.Start, content: @Composable FlexRowLayoutScope.() -> Unit)

FlexRow allows items in a row to expand to fill the available height.

Link copied to clipboard
inline fun <T> PanAndScaleScope.items(items: List<T>, noinline key: (item: T) -> Any, crossinline position: (item: T) -> DpOffset, crossinline maxSize: (item: T) -> DpSize = { DpSize.Unspecified }, crossinline shouldForceRender: (item: T) -> Boolean = { false }, crossinline itemContent: @Composable (item: T) -> Unit)
Link copied to clipboard
fun PanAndScale(modifier: Modifier = Modifier, state: PanAndScaleState, onClick: (absoluteMousePos: DpOffset, mousePos: DpOffset) -> Unit? = null, onPan: (DpOffset) -> Unit = {}, showGrid: Boolean = true, gridSize: Dp = 20.dp, background: Color, gridColor: Color, subcomposeLayoutState: SubcomposeLayoutState = remember { SubcomposeLayoutState(SubcomposeSlotReusePolicy(0)) }, content: PanAndScaleScope.() -> Unit)
Link copied to clipboard

Similar to spacedBetween but with guaranteed padding in between composables.

Link copied to clipboard
fun WrappableRow(horizontalArrangement: Arrangement.Horizontal = Arrangement.Start, verticalAlignment: Alignment.Vertical = Alignment.Top, verticalSpacing: Dp = 0.dp, modifier: Modifier = Modifier, content: @Composable () -> Unit)

WrappableRow allows for content to wrap to multiple lines with the specified verticalSpacing