JetTab.simple constructor
const
JetTab.simple({
- Key? key,
- required List<
String> tabs, - required List<
Widget> children, - int? initialLength,
- int initialIndex = 0,
- TabController? controller,
- bool isScrollable = false,
- TabAlignment? tabAlignment,
- Color? indicatorColor,
- Color? labelColor,
- Color? unselectedLabelColor,
- TextStyle? labelStyle,
- TextStyle? unselectedLabelStyle,
- TabBarIndicatorSize? indicatorSize,
- EdgeInsetsGeometry? indicatorPadding,
- Color? dividerColor,
- double? dividerHeight,
- ValueChanged<
int> ? onTap, - double? tabBarHeight,
- ScrollPhysics? physics,
- Duration? animationDuration,
- List<
Widget> ? customTabs,
Creates a simple tab widget with widget children.
Implementation
const JetTab.simple({
Key? key,
required List<String> tabs,
required List<Widget> children,
int? initialLength,
int initialIndex = 0,
TabController? controller,
bool isScrollable = false,
TabAlignment? tabAlignment,
Color? indicatorColor,
Color? labelColor,
Color? unselectedLabelColor,
TextStyle? labelStyle,
TextStyle? unselectedLabelStyle,
TabBarIndicatorSize? indicatorSize,
EdgeInsetsGeometry? indicatorPadding,
Color? dividerColor,
double? dividerHeight,
ValueChanged<int>? onTap,
double? tabBarHeight,
ScrollPhysics? physics,
Duration? animationDuration,
List<Widget>? customTabs,
}) : this._(
key: key,
tabs: tabs,
children: children,
initialLength: initialLength ?? children.length,
initialIndex: initialIndex,
controller: controller,
isScrollable: isScrollable,
tabAlignment: tabAlignment,
indicatorColor: indicatorColor,
labelColor: labelColor,
unselectedLabelColor: unselectedLabelColor,
labelStyle: labelStyle,
unselectedLabelStyle: unselectedLabelStyle,
indicatorSize: indicatorSize,
indicatorPadding: indicatorPadding,
dividerColor: dividerColor,
dividerHeight: dividerHeight,
onTap: onTap,
tabBarHeight: tabBarHeight,
physics: physics,
animationDuration: animationDuration,
customTabs: customTabs,
useAutoRoute: false,
);