padding

Function

Android
public fun CurvedModifier.padding(paddingValues: ArcPaddingValues): CurvedModifier

Apply additional space along the edges of the content.

Parameters

paddingValuesThe ArcPaddingValues to use. See that class and factory methods to see how paddings can be specified.
Android
public fun CurvedModifier.padding(outer: Dp, inner: Dp, before: Dp, after: Dp): CurvedModifier

Apply additional space along the edges of the content. Dimmensions are in dp. For before and after they will be considered as if they are at the midpoint of the content (for conversion between dimension and angle).

Parameters

outerThe space to add to the outer edge of the content (away from the center of the containing CurvedLayout)
innerThe space to add to the inner edge of the content (towards the center of the containing CurvedLayout)
beforeThe space added before the component, if it was draw clockwise. This is the edge of the component with the "smallest" angle.
afterThe space added after the component, if it was draw clockwise. This is the edge of the component with the "biggest" angle.
Android
public fun CurvedModifier.padding(radial: Dp = 0.dp, angular: Dp = 0.dp): CurvedModifier

Apply angular dp space before and after the component, and radial dp space to the outer and inner edges.

Parameters

radialThe space added to the outer and inner edges of the content, in dp.
angularThe space added before and after the content, in dp.
Android
public fun CurvedModifier.padding(all: Dp = 0.dp): CurvedModifier

Apply all dp space around the component.

Parameters

allThe space added to all edges.