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
modifier | The CurvedModifier to apply to this curved composable. |
radialAlignment | How to align this component if it's thinner than the container. |
rotationLocked | by 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. |
content | The 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
modifier | The CurvedModifier to apply to this curved composable. |
radialAlignment | How to align this component if it's thinner than the container. |
content | The 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. |