intro
custom bottom navigation bar on flutter.
the updated one support : null safety & support 9 items on tabs & some color, size, effects and font customization.
check the screenshot :
p.s
make sure to upgrade your flutter version to latest version which support null safety.
flutter upgrade
usage
bottomnavigationbar: fancybottomnavigation(
tabs: [
tabdata(icondata: icons.home, title: "home", onclick: () {}),
tabdata(
icondata: icons.shopping_bag,
title: "my cart",
onclick: () => {}),
tabdata(icondata: icons.message, title: "message", onclick: () => {}),
tabdata(
icondata: icons.notifications, title: "notification", onclick: () => {}),
tabdata(
icondata: icons.person,
title: "profile",
onclick: () => {},
)
],
initialselection: 2,
activeiconcolor: colors.white,
circlecolor: color.fromargb(255, 245, 154, 67),
barbackgroundcolor: color.fromargb(255, 229, 233, 234),
inactiveiconcolor: colors.grey,
key: bottomnavigationkey,
ontabchangedlistener: (position) {
setstate(() {
currentpage = position;
});
},
),
contributing
pull requests are welcome. for major changes, please open an issue first to discuss what you would like to change.
please make sure to update tests as appropriate.
i’m available for new projects : [email protected]
license
fancy_botton_navigation_bar
on pub dev.
Comments are closed.