Skip to main content

Module widgets

Module widgets 

Source
Expand description

Re-export the UI crate so applications can depend on a single crate. UI Widget components

Modules§

basic_text_field
BasicTextField widget for editable text input.
box_widget
Box widget implementation
button
Button widget implementation
canvas
Canvas composable for custom drawing via DrawScope.
clickable_text
ClickableText widget for handling clicks on annotated text.
column
Column widget implementation
foreach
ForEach iteration helper
image
Image composable and painter primitives.
layout
Generic Layout widget and SubcomposeLayout
lazy_list
LazyColumn and LazyRow widget implementations.
linked_text
LinkedText widget — renders AnnotatedString with link annotations auto-handled.
nodes
row
Row widget implementation
scopes
Scope traits and implementations for Box, Column, and Row
spacer
Spacer widget implementation
text
Text widget implementation

Structs§

BasicTextFieldOptions
Options for customizing BasicTextField appearance and behavior.
BoxScopeImpl
Concrete implementation of BoxScope.
BoxSpec
Specification for Box layout behavior.
BoxWithConstraintsScopeImpl
Concrete implementation of BoxWithConstraintsScope.
ButtonSpec
ColumnScopeImpl
Concrete implementation of ColumnScope.
ColumnSpec
Specification for Column layout behavior.
DynamicTextSource
LayoutNode
LayoutState
Retained layout state for a LayoutNode. This mirrors Jetpack Compose’s approach where each node stores its own measured size and placed position, eliminating the need for per-frame LayoutTree reconstruction.
LazyColumnSpec
Specification for LazyColumn layout behavior.
LazyListItemInfo
Information about a single visible item in a lazy list.
LazyListLayoutInfo
Information about the currently visible items in a lazy list.
LazyRowSpec
Specification for LazyRow layout behavior.
Painter
RowScopeImpl
Concrete implementation of RowScope.
RowSpec
Specification for Row layout behavior.
SvgPainter
Parsed SVG image data that rasterizes on demand for the requested draw size.

Enums§

ContentScale
IntrinsicKind
SvgPainterError
Errors returned while parsing or rasterizing an SVG painter.
TextSource

Constants§

DEFAULT_ALPHA

Traits§

BoxScope
Marker trait matching Jetpack Compose’s BoxScope API.
BoxWithConstraintsScope
Scope exposed to [BoxWithConstraints] content.
ColumnScope
Marker trait for Column scope - provides horizontal alignment.
RowScope
Marker trait for Row scope - provides vertical alignment.

Functions§

BasicText
BasicTextField
When to use
BasicTextFieldWithOptions
Creates an editable text field with custom options.
BasicTextWithOptions
BitmapPainter
Box
A layout composable that stacks its children on top of each other.
BoxWithConstraints
Button
A clickable button with a background and content.
Canvas
A composable that draws custom content using a DrawScope.
ClickableText
Displays an AnnotatedString and calls on_click with the byte offset of the character under the pointer at the time of the click.
Column
A layout composable that places its children in a vertical sequence.
ForEach
Image
Layout
LazyColumn
A vertically scrolling list that only composes visible items.
LazyRow
A horizontally scrolling list that only composes visible items.
LinkedText
Renders an AnnotatedString and automatically dispatches link clicks:
Row
A layout composable that places its children in a horizontal sequence.
Spacer
A component that represents an empty space.
SubcomposeLayout
Text
TextWithOptions
cranpose_node
remember_svg