TabBarTheme constructor
- Key? key,
- Decoration? indicator,
- Color? indicatorColor,
- TabBarIndicatorSize? indicatorSize,
- Color? dividerColor,
- double? dividerHeight,
- Color? labelColor,
- EdgeInsetsGeometry? labelPadding,
- TextStyle? labelStyle,
- Color? unselectedLabelColor,
- TextStyle? unselectedLabelStyle,
- WidgetStateProperty<
Color?> ? overlayColor, - InteractiveInkFeatureFactory? splashFactory,
- WidgetStateProperty<
MouseCursor?> ? mouseCursor, - TabAlignment? tabAlignment,
- TextScaler? textScaler,
- TabIndicatorAnimation? indicatorAnimation,
- TabBarThemeData? data,
- Widget? child,
Creates a tab bar theme that can be used with ThemeData.tabBarTheme.
Implementation
const TabBarTheme({
super.key,
Decoration? indicator,
Color? indicatorColor,
TabBarIndicatorSize? indicatorSize,
Color? dividerColor,
double? dividerHeight,
Color? labelColor,
EdgeInsetsGeometry? labelPadding,
TextStyle? labelStyle,
Color? unselectedLabelColor,
TextStyle? unselectedLabelStyle,
WidgetStateProperty<Color?>? overlayColor,
InteractiveInkFeatureFactory? splashFactory,
WidgetStateProperty<MouseCursor?>? mouseCursor,
TabAlignment? tabAlignment,
TextScaler? textScaler,
TabIndicatorAnimation? indicatorAnimation,
TabBarThemeData? data,
Widget? child,
}) : assert(
data == null ||
(indicator ?? indicatorColor ?? indicatorSize ?? dividerColor ?? dividerHeight
?? labelColor ?? labelPadding ?? labelStyle ?? unselectedLabelColor ?? unselectedLabelStyle
?? overlayColor ?? splashFactory ?? mouseCursor ?? tabAlignment ?? textScaler
?? indicatorAnimation) == null),
_indicator = indicator,
_indicatorColor = indicatorColor,
_indicatorSize = indicatorSize,
_dividerColor = dividerColor,
_dividerHeight = dividerHeight,
_labelColor = labelColor,
_labelPadding = labelPadding,
_labelStyle = labelStyle,
_unselectedLabelColor = unselectedLabelColor,
_unselectedLabelStyle = unselectedLabelStyle,
_overlayColor = overlayColor,
_splashFactory = splashFactory,
_mouseCursor = mouseCursor,
_tabAlignment = tabAlignment,
_textScaler = textScaler,
_indicatorAnimation = indicatorAnimation,
_data = data,
super(child: child ?? const SizedBox());