ScrollBottomNavigationBar
Hide or show bottom navigation bar while scrolling.
Roadmap
This is currently our roadmap, please feel free to request additions/changes.
Feature | Progress |
---|---|
Scrollable | ✅ |
Supports FAB | ✅ |
Supports Snackbar | ✅ |
Gradient background | ✅ |
Pin/unpin | ✅ |
Snap/unsnap | ✅ |
Auto change page | ✅ |
Change page by controller | ✅ |
Listen page changes | ✅ |
Custom scroll controller | ✅ |
Auto attach scroll controller | ✅ |
Animated transitions | ? |
Usage
Getting started
Add scroll_bottom_navigation_bar
package to your project. You can do this following this steps.
Basic implementation
First, you need a ScrollBottomNavigationBarController
instance. If you need a custom ScrollController
, you can pass the instance on constructor.
Now, you can use the ScrollBottomNavigationBar
widget in a Scaffold
widget, and attach ScrollController
instance in your scrollable widget on body.
For simplify your code, you can use the ScrollBody
widget as your scrollable widget. This widget takes care of exchanging items from the bottom bar.
NOTE: Showing only essencial code. See example section to a complete implementation.
ScrollBottomNavigationBarController
You can use the ScrollBottomNavigationBarController instance to manage the behavior of the bottom navigation bar.
Change page
Check pin state
Pin
Unpin
Toogle pin state
Check snap state
Snap
Unsnap
Toogle snap state
Listen page changes
Dispose
Example
You can also check the example for additional information.
Snapshots
GitHub
https://github.com/EdsonOnildoJR/scroll_bottom_navigation_bar