Function

Fill

Creates a solid color Fill.

Fill

Source set: Common
@ExperimentalFoundationStyleApi @Stable public fun Fill(color: Color): Fill

Creates a solid color Fill.

Parameters

color color to fill with

Fill

Source set: Common
@ExperimentalFoundationStyleApi @Stable public fun Fill(brush: Brush): Fill

Creates a brush Fill.

Parameters

brush gradient or shader brush to fill with

Fill

Source set: Common
public fun Fill(value: Any?): Fill?

Converts value to a Fill if it is a supported fill type. Returns null otherwise.

Parameters

value object to convert to a Fill
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: