Class

SearchBarColors

Represents the colors used by a search bar.

Source set: Common
public class SearchBarColors(
    public val containerColor: Color,
    public val dividerColor: Color,
    public val inputFieldColors: TextFieldColors,
)

Represents the colors used by a search bar.

See SearchBarDefaults.colors for the default implementation that follows Material specifications.

Functions

copy

Source set: Common
public fun copy(
        containerColor: Color = this.containerColor,
        dividerColor: Color = this.dividerColor,
        inputFieldColors: TextFieldColors = this.inputFieldColors,
    ): SearchBarColors

Returns a copy of this SearchBarColors, optionally overriding some of the values.

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int
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: