TabBarDefaults

Defaults for TabBar, NavRail, and AdaptiveNavScaffold. Sizes match Material's bar.

Properties

Link copied to clipboard

The arrangement used when none is given.

Link copied to clipboard

Height of the selected destination's indicator pill.

Link copied to clipboard

Width of the selected destination's indicator pill.

Link copied to clipboard

Minimum height of the bar's content, excluding system bar insets.

Link copied to clipboard

The insets the bar pads for: the horizontal and bottom system bars.

Functions

Link copied to clipboard
fun itemColors(selectedIconColor: Color = MaterialTheme.colorScheme.onPrimaryContainer, selectedTextColor: Color = MaterialTheme.colorScheme.primary, selectedIndicatorColor: Color = MaterialTheme.colorScheme.primaryContainer, unselectedIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, unselectedTextColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, disabledIconColor: Color = unselectedIconColor.copy(alpha = DISABLED_ALPHA), disabledTextColor: Color = unselectedTextColor.copy(alpha = DISABLED_ALPHA)): TabBarItemColors

Destination colors from the theme. The selected indicator is a primary-container pill; pass Color.Transparent for tint-only selection.