UTabBarTheme constructor
const
UTabBarTheme({
- required Color backgroundColor,
- required Color selectedTabColor,
- required Color hoverTabColor,
- required Color unselectedTabColor,
- required Color selectedTextColor,
- required Color unselectedTextColor,
- required Color indicatorColor,
- required Color controlColor,
- Gradient? backgroundGradient,
- double height = 52,
- double tabHeight = 38,
- double minTabWidth = 120,
- double maxTabWidth = 220,
- double gap = 6,
- BorderRadius tabRadius = const BorderRadius.all(Radius.circular(12)),
- Duration animationDuration = const Duration(milliseconds: 260),
- Curve animationCurve = Curves.easeOutCubic,
- bool showSelectedUnderline = true,
Implementation
const UTabBarTheme({
required this.backgroundColor,
required this.selectedTabColor,
required this.hoverTabColor,
required this.unselectedTabColor,
required this.selectedTextColor,
required this.unselectedTextColor,
required this.indicatorColor,
required this.controlColor,
this.backgroundGradient,
this.height = 52,
this.tabHeight = 38,
this.minTabWidth = 120,
this.maxTabWidth = 220,
this.gap = 6,
this.tabRadius = const BorderRadius.all(Radius.circular(12)),
this.animationDuration = const Duration(milliseconds: 260),
this.animationCurve = Curves.easeOutCubic,
this.showSelectedUnderline = true,
});