OrbiterAlignment.CenterStart

class OrbiterAlignment.CenterStart : OrbiterAlignment


Center-Start edge alignment.

Summary

Public constructors

CenterStart(
    edgeOffsetType: OrbiterEdgeOffsetType,
    offset: DpVolumeOffset
)

This function is deprecated. Use OrbiterPosition instead.

Public constructors

CenterStart

Added in 1.0.0-beta01
Deprecated in 1.0.0-beta01
CenterStart(
    edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
    offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation)
)
Parameters
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge

boundary offset behavior relative to the parent bounds

offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation)

manual offset applied to the orbiter after the edgeOffsetType's offset is applied. This offset will automatically adjust the horizontal offset according to the layout direction: when the layout direction is LTR, positive x offsets will move the content to the right and when the layout direction is RTL, positive x offsets will move the content to the left.