CustomTabBar constructor
const
CustomTabBar({
- required IndexedTabBarItemBuilder builder,
- required int itemCount,
- required PageController pageController,
- double? height,
- Axis direction = Axis.horizontal,
- ValueChanged<
int> ? onTapItem, - CustomIndicator? indicator,
- CustomTabBarController? tabBarController,
- double? width,
- bool pinned = false,
- bool controlJump = true,
- Key? key,
Implementation
const CustomTabBar(
{required this.builder,
required this.itemCount,
required this.pageController,
this.height,
this.direction = Axis.horizontal,
this.onTapItem,
this.indicator,
this.tabBarController,
this.width,
this.pinned = false,
this.controlJump = true,
Key? key})
: assert(
direction == Axis.horizontal ||
(direction == Axis.vertical && indicator is RoundIndicator),
"vertical direction only support RoundIndicator"),
assert(
direction == Axis.horizontal ||
(direction == Axis.vertical && width != null),
"vertical direction must set width property"),
assert(pinned == true ||
(pinned == false &&
(direction == Axis.vertical || height != null))),
super(key: key);