Source set: Android
public class Center(
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation)
) :
OrbiterPosition(
alignment = SpatialAlignment.Center,
horizontalEdgeAlignment = EdgeAlignment.Center,
verticalEdgeAlignment = EdgeAlignment.Center,
offset = offset,
)
Center of the parent (non-edge).
Parameters
| offset | manual offset applied to the orbiter. 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. |