OneUIBottomNavigationBar constructor
const
OneUIBottomNavigationBar({
- Key? key,
- required List<
OneUIBottomNavigationBarItem> items, - ValueChanged<
int> ? onTap, - int currentIndex = 0,
- Color? fixedColor,
- Color? backgroundColor,
- Color? selectedItemColor,
- Color? unselectedItemColor,
- TextStyle? selectedLabelStyle,
- TextStyle? unselectedLabelStyle,
- MouseCursor? mouseCursor,
- bool? enableFeedback,
- double fontSize = 14.0,
Implementation
const OneUIBottomNavigationBar({
Key? key,
required this.items,
this.onTap,
this.currentIndex = 0,
Color? fixedColor,
this.backgroundColor,
Color? selectedItemColor,
this.unselectedItemColor,
this.selectedLabelStyle,
this.unselectedLabelStyle,
this.mouseCursor,
this.enableFeedback,
this.fontSize = 14.0,
}) : assert(items.length >= 2),
assert(0 <= currentIndex && currentIndex < items.length),
assert(selectedItemColor == null || fixedColor == null,
'Either selectedItemColor or fixedColor can be specified, but not both'),
assert(fontSize >= 0.0),
selectedItemColor = selectedItemColor ?? fixedColor,
super(key: key);