mt-akar / bottom_nav_layout

A quick and powerful Flutter layout with a bottom navbar.
https://pub.dev/packages/bottom_nav_layout
MIT License
35 stars 11 forks source link

ScrollController for the bar? #2

Closed mark8044 closed 3 years ago

mark8044 commented 3 years ago

Id like to have the bar scroll away as the user scrolls the screen (something like this: https://pub.dev/packages/scroll_bottom_navigation_bar)

To do this I believe I need to program some animation with a scrollcontroller.

Is there anyway to attach a scrollcontroller to your bar?

PS. Bar is working outstanding!

mark8044 commented 3 years ago

Im an idiot. Lets just leave it at that

mt-akar commented 3 years ago

Is there anyway to attach a scrollcontroller to your bar?

BottomNavLayout doesn't provide a bottom bar, it only provides a layout. You need to create your own bar using the bottom bar builder parameter.

Id like to have the bar scroll away as the user scrolls the screen (something like this: https://pub.dev/packages/scroll_bottom_navigation_bar)

This behavior should be possible. Just follow that particular bottom bar package's documentation.