Function

background

Specifies a solid background for a curved element.

background

Source set: Android
public fun CurvedModifier.background(
    color: Color,
    cap: StrokeCap = StrokeCap.Butt,
): CurvedModifier

Specifies a solid background for a curved element.

Parameters

color The color to use to paint the background.
cap How to start and end the background.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: