FloatyNavyBar constructor
FloatyNavyBar({
- Key? key,
- required List<
NavyBarItem> items, - required ValueChanged<
int> onChanged, - required double barHeight,
- required bool opacityAnimation,
- bool? offstage,
- Color? iconColor,
- double? iconSize,
- TextStyle? textStyle,
- Color? backgroundColor,
- Color indicatorColor = Colors.black,
- double indicatorHeight = 5.0,
- double indicatorWidth = 8.0,
- double itemWidth = 70,
Implementation
FloatyNavyBar({
Key? key,
required this.items,
required this.onChanged,
required this.barHeight,
required this.opacityAnimation,
this.offstage,
this.iconColor,
this.iconSize,
this.textStyle,
this.backgroundColor,
this.indicatorColor = Colors.black,
this.indicatorHeight = 5.0,
this.indicatorWidth = 8.0,
this.itemWidth = 70,
}) : assert(items.length > 1 && items.length < 5,
"\n******\n NavBarItems can't contain only 1 item and can't exceed 4 items \n******\n"),
assert(
indicatorWidth <= 15 || indicatorHeight <= 15,
"\n******\n Too much height given to tab indicator \n******\n",
),
super(key: key);