0 purchases
custom bottom navigation bar
Custom bottom navigation bar #
A bottom navigation bar widget that is made to be customized
How to use it? #
Scaffold(
bottomNavigationBar: CustomBottomNavigationBar(
items: [
CustomBottomNavigationBarItem(
icon: Icons.map,
title: "Map",
),
CustomBottomNavigationBarItem(
icon: Icons.near_me,
title: "Directions",
),
CustomBottomNavigationBarItem(
icon: Icons.settings,
title: "Settings",
),
],
),
);
copied to clipboard
You can also add a parameter onTap (which returns current index) to control PageController:
onTap: (index) {
_pageController.animateToPage(index,
curve: Curves.fastLinearToSlowEaseIn,
duration: Duration(milliseconds: 600));
},
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.