UDefaultTabBar constructor
const
UDefaultTabBar({
- required List<
Widget> children, - required Widget tabBar,
- Key? key,
- double? width,
- double? height,
- TabController? controller,
- ScrollPhysics? physics,
- int initialIndex = 0,
- Color? indicatorColor,
- TextStyle? labelStyle,
- TextStyle? unselectedLabelStyle,
- double indicatorWeight = 2.0,
- bool isScrollable = false,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- double viewportFraction = 1.0,
- BoxConstraints? constraints,
Implementation
const UDefaultTabBar({
required this.children,
required this.tabBar,
super.key,
this.width,
this.height,
this.controller,
this.physics,
this.initialIndex = 0,
this.indicatorColor,
this.labelStyle,
this.unselectedLabelStyle,
this.indicatorWeight = 2.0,
this.isScrollable = false,
this.dragStartBehavior = DragStartBehavior.start,
this.viewportFraction = 1.0,
this.constraints,
});