tabBarUnselectedItemOpacity property

double? tabBarUnselectedItemOpacity
final

Defines the opacity used on the TabBar unselected items.

Only has any effect when the tabBarItemSchemeColor is defined, if it is not defined then we are using FlexTabBarStyle based styling set via factories FlexColorScheme.light or FlexColorScheme.dark directly and this property cannot impact its settings. First define a custom tabBarItemSchemeColor and optionally also tabBarUnselectedItemSchemeColor to be able to use opacity on the unselected TabBar item.

If not defined, and M3 is used, defaults to 1 (100%), fully opaque. If M2 is used, defaults to 0.7 (70%) opacity.

Implementation

final double? tabBarUnselectedItemOpacity;