convex_bottom_navigation 0.0.4 convex_bottom_navigation: ^0.0.4 copied to clipboard
Bottom navigation with convex items
convex_bottom_navigation #
Bottom navigation with convex items
How to use #
ConvexBottomNavigation fn = ConvexBottomNavigation(
tabs: [
TabData(icon: Icon(Icons.home), title: "Home"),
TabData(icon: Icon(Icons.menu), title: "Menu")
],
onTabChangedListener: (position) {},
);
Or, for example:
ConvexBottomNavigation(
activeIconColor: colorPrimaryDark,
inactiveIconColor: Colors.grey,
textColor: colorPrimaryDark,
bigIconPadding: 10.0,
tabs: [
TabData(
icon: Image(
image: AssetImage("assets/ic_speaker.png"),
),
title: "Feed"),
TabData(
icon: Image(
image: AssetImage("assets/ic_profile.png"),
),
title: "Profile")
],
onTabChangedListener: (position) {
setState(() {
_currentIndex = position;
});
},
);
See documentation to get information about all parameters