TitledBottomNavigationBar constructor
TitledBottomNavigationBar({
- Key? key,
- bool reverse = false,
- Curve curve = Curves.linear,
- required ValueChanged<
int> onTap, - required List<
TitledNavigationBarItem> items, - Color? activeColor,
- Color? inactiveColor,
- Color? inactiveStripColor,
- Color? indicatorColor,
- bool enableShadow = true,
- int currentIndex = 0,
- double height = DEFAULT_BAR_HEIGHT,
- double indicatorHeight = DEFAULT_INDICATOR_HEIGHT,
Implementation
TitledBottomNavigationBar({
Key? key,
this.reverse = false,
this.curve = Curves.linear,
required this.onTap,
required this.items,
this.activeColor,
this.inactiveColor,
this.inactiveStripColor,
this.indicatorColor,
this.enableShadow = true,
this.currentIndex = 0,
this.height = DEFAULT_BAR_HEIGHT,
this.indicatorHeight = DEFAULT_INDICATOR_HEIGHT,
}) : assert(items.length >= 2 && items.length <= 5),
super(key: key);