botton_nav_bar 0.0.4
botton_nav_bar: ^0.0.4 copied to clipboard
A buttom nav bar package is a custom package for bottom nav bar with this package you can easily make custom buttom nav bar
A lightweight, customizable navigation bar widget for flutter which can be used as a FAB as well as a fixed Widget where you can change position of FAB with elevation
Features #
Customization(you can customize nav bar as per your requirement)
BottomNavyBar
iconSize - the item icon's size
items - navigation items, required more than one item
selectedIndex - the current item index. Use this to change the selected item. Defaults to zero
onItemSelected - required to listen when an item is tapped it provides the selected item's index
backgroundColor - the navigation bar's background color
selectedColor - Color of a selected index label - Name of Scrren screen - Widget/Screen you want to Show navigation items, required more than one item
BottomNavyBarItem
icon - the icon of this item title - the text that will appear next to the icon when this item is selected activeColor - the active item's background and text color inactiveColor - the inactive item's icon color textAlign - property to change the alignment of the item title
Getting started #
Add the dependency in pubspec.yaml:
Usage #
Additional information #
@override Widget build(BuildContext context) => Scaffold( drawer: const DrawerWidget(), body: BottomNavBar( bottomItems:
),
BottomBarItem(
selectedColor: Colors.grey
label: 'item 4',
screen: const 'Screen 4,
selectedIcon: Icons.notifications_active,
)
],
),
);