ComponentCreationScope
A receiver for lambdas that create a component within a ContainerDsl. Prevents accidental calls to child()
LazyList {
child(id = 1, deps = arrayOf) {
child(Text("")) // Prevent this
Text("")
}
}
Functions
Creates a border style to be applied to a component
Builder function for creating CardSpec components.
Builder function for creating HorizontalScrollSpec components.
Builder function for creating ImageSpec components.
A scrollable collection of components arranged in a grid
A scrollable collection of components arranged linearly
A scrollable collection of components arranged in a staggered grid
An ItemDecoration
to add spacing around list items in a Collection. It is intended for use with linear collections (which is the default layout, see CollectionLayouts.Linear), and wont work with grids or staggered grids.
Kotlin wrapper for the Component generated by RecyclerCollectionComponentSpec.
Utility for creating a layout tree that depends on its own and/or its children's size.
Scroll the LazyCollection by a given number of pixels. The Scroll is instant. For an animated scroll use smoothScrollBy.
Scroll the LazyCollection so that the child with the given id is fully visible. For an animated scroll use smoothScrollToId.
Scroll the LazyCollection so that the child at the given index is fully visible. For an animated scroll use smoothScrollToIndex.
Perform and animated scroll on the LazyCollection by a given number of pixels. For an instantaneous scroll use scrollBy.
Perform an animated scroll on the LazyCollection so that the child with the given id is fully visible. For an animated scroll use smoothScrollToId.
Perform an animated scroll on the LazyCollection so that the child at the given index is fully visible. For an instantaneous scroll use scrollToIndex.
Builder function for creating SolidColorSpec components.
Temporary builder function for creating TextSpec components. In the future it will either be auto-generated or modified to have the final set of parameters.
Builder function for creating TextInputSpec components.
Builder function for creating Vertical Scroll Primitive.