GFTabBar constructor
const
GFTabBar({
- Key? key,
- required int? length,
- required List<
Widget> tabs, - required TabController? controller,
- bool isScrollable = false,
- double? tabBarHeight,
- Color? tabBarColor,
- Color? indicatorColor,
- double indicatorWeight = 2.0,
- EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
- Decoration? indicator,
- TabBarIndicatorSize? indicatorSize,
- Color? labelColor,
- TextStyle? labelStyle,
- EdgeInsetsGeometry? labelPadding,
- Color? unselectedLabelColor,
- TextStyle? unselectedLabelStyle,
- ShapeBorder? shape,
- double? width,
Creates a material design tab bar.
The tabs
argument must not be null and its length must match the controller
's
TabController.length.
Implementation
const GFTabBar({
Key? key,
required this.length,
required this.tabs,
required this.controller,
this.isScrollable = false,
this.tabBarHeight,
this.tabBarColor,
this.indicatorColor,
this.indicatorWeight = 2.0,
this.indicatorPadding = EdgeInsets.zero,
this.indicator,
this.indicatorSize,
this.labelColor,
this.labelStyle,
this.labelPadding,
this.unselectedLabelColor,
this.unselectedLabelStyle,
this.shape,
this.width,
}) : assert(length != null && length >= 0),
super(key: key);