🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

AlignmentLine

Defines an offset line that can be used by parent layouts to align and position their children.

AlignmentLineSample

@Sampled
@Composable
fun AlignmentLineSample() {
    // Create a horizontal alignment line. Note it is not common for alignment lines to be created
    // in the scope of one composable, since they are usually used across more than one function.
    // We use ::min as merging strategy, which means that the parent will have the minimum of
    // the values of the alignment line, when this is inherited from more than one child.
    val exampleLine = remember { HorizontalAlignmentLine(::min) }

    // A layout with a fixed size, and a given position for the exampleLine alignment line.