WideNavigationRailColors

constructor(containerColor: Color, contentColor: Color, modalContainerColor: Color, modalScrimColor: Color, modalContentColor: Color)

Parameters

containerColor

the color used for the background of a non-modal wide navigation rail. Use Color.Transparent to have no color

contentColor

the preferred color for content inside a wide navigation rail. Defaults to either the matching content color for containerColor, or to the current LocalContentColor if containerColor is not a color from the theme

modalContainerColor

the color used for the background of a modal wide navigation rail. Use Color.Transparent to have no color

modalScrimColor

the color used for the scrim overlay for background content of a modal wide navigation rail

modalContentColor

the preferred color for content inside a modal wide navigation rail. Defaults to either the matching content color for modalContainerColor, or to the current LocalContentColor


constructor(containerColor: Color, contentColor: Color, modalContainerColor: Color, modalScrimColor: Color)

Deprecated

Deprecated in favor of constructor with modalContentColor parameter

Replace with

WideNavigationRailColors(containerColor, contentColor, modalContainerColor, modalScrimColor, modalContentColor)