Interface

NavigationDrawerItemColors

Represents the colors of the various elements of a drawer item.

Source set: Common
public interface NavigationDrawerItemColors

Represents the colors of the various elements of a drawer item.

Functions

iconColor

Source set: Common
@Composable public fun iconColor(selected: Boolean): State<Color>

Represents the icon color for this item, depending on whether it is selected.

Parameters

selected whether the item is selected

textColor

Source set: Common
@Composable public fun textColor(selected: Boolean): State<Color>

Represents the text color for this item, depending on whether it is selected.

Parameters

selected whether the item is selected

badgeColor

Source set: Common
@Composable public fun badgeColor(selected: Boolean): State<Color>

Represents the badge color for this item, depending on whether it is selected.

Parameters

selected whether the item is selected

containerColor

Source set: Common
@Composable public fun containerColor(selected: Boolean): State<Color>

Represents the container color for this item, depending on whether it is selected.

Parameters

selected whether the item is selected
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: