altTabBarTheme static method
- BuildContext context
Alternative tab bar theme that assumes the primary color is the background of the tab bar.
Implementation
static TabBarTheme altTabBarTheme(BuildContext context) {
return context.theme.tabBarTheme.copyWith(
unselectedLabelColor: context.colorScheme.onPrimary,
indicator: ShapeDecoration(
color: context.colorScheme.surfaceContainerLowest,
shape: TabBorder(
radius: 24.0,
side: BorderSide(
color: context.theme.dividerColor,
width: 1.0,
),
),
),
);
}