FloatingBottomNavBar constructor
const
FloatingBottomNavBar({
- Key? key,
- required ValueChanged<
int> onTap, - int currentIndex = 0,
- double? width,
- double? bottomPadding = 16,
- double? elevation = 3,
- double? radius,
- Color backgroundColor = const Color(0xFFFFFFFF),
- Color darkThemeBackgroundColor = const Color(0xFF292929),
- Color? selectedItemColor = const Color(0xFF111111),
- Color darkThemeselectedItemColor = const Color(0xFFEFEFEF),
- Color? unselectedItemColor = const Color(0xFF767676),
- Color darkThemeUnselectedItemColor = const Color(0xFF767676),
- required List<
IconData> items, - double iconSize = 28,
Implementation
const FloatingBottomNavBar({
Key? key,
required this.onTap,
this.currentIndex = 0,
this.width,
this.bottomPadding = 16,
this.elevation = 3,
this.radius,
this.backgroundColor = const Color(0xFFFFFFFF),
this.darkThemeBackgroundColor = const Color(0xFF292929),
this.selectedItemColor = const Color(0xFF111111),
this.darkThemeselectedItemColor = const Color(0xFFEFEFEF),
this.unselectedItemColor = const Color(0xFF767676),
this.darkThemeUnselectedItemColor = const Color(0xFF767676),
required this.items,
this.iconSize = 28,
}) : assert(items.length >= 2, 'Minium 2 items need to specify.'),
assert(0 <= currentIndex && currentIndex < items.length),
super(key: key);