curvedComposable

Function

Android
public fun CurvedScope.curvedComposable(
    modifier: CurvedModifier = CurvedModifier,
    radialAlignment: CurvedAlignment.Radial = CurvedAlignment.Radial.Center,
    rotationLocked: Boolean = false,
    content: @Composable BoxScope.() -> Unit,
): Unit

Component that allows normal composables to be part of a CurvedLayout.

Parameters

modifierThe CurvedModifier to apply to this curved composable.
radialAlignmentHow to align this component if it's thinner than the container.
rotationLockedby default (when this is false), the component will be rotated as it moves around the circle, so its base always faces the center. If set to true, it won't be rotated and only moved into position, for example, an upwards pointing arrow will remain pointing upwards wherever it appears on the circle. Note that this is not taken into account when computing the size this will take in the layout, so it's best suited for square/circular things and may require manual sizing when used in other contexts.
contentThe composable(s) that will be wrapped and laid out as part of the parent container. This has a BoxScope, since it's wrapped inside a Box.
Android

Deprecated This overload is provided for backwards compatibility with Compose for Wear OS 1.4. A newer overload is available with additional parameter to control rotation.

public fun CurvedScope.curvedComposable(
    modifier: CurvedModifier = CurvedModifier,
    radialAlignment: CurvedAlignment.Radial = CurvedAlignment.Radial.Center,
    content: @Composable BoxScope.() -> Unit,
): Unit

Component that allows normal composables to be part of a CurvedLayout.

Parameters

modifierThe CurvedModifier to apply to this curved composable.
radialAlignmentHow to align this component if it's thinner than the container.
contentThe composable(s) that will be wrapped and laid out as part of the parent container. This has a BoxScope, since it's wrapped inside a Box.