scroll_bottom_navigation_bar 2.0.0 copy "scroll_bottom_navigation_bar: ^2.0.0" to clipboard
scroll_bottom_navigation_bar: ^2.0.0 copied to clipboard

outdated

This package allow hide or show bottom navigation bar while scrolling

ScrollBottomNavigationBar #

Hide or show bottom navigation bar while scrolling.

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.

final controller = ScrollBottomNavigationBarController(); 

Now, you can use the ScrollBottomNavigationBar widget in a Scaffold widget, and atach ScrollController instance in your scrollable widget on body.

For simplify your code, you can use the ScrollBody widget as yout 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.

@override
Widget build(BuildContext context) {
  return Scaffold(
    body: ScrollBody(
      scrollBottomNavigationBarController: controller,
      builder: (context, index) => container(index),
    ),
    bottomNavigationBar: ScrollBottomNavigationBar(
      scrollBottomNavigationBarController: controller,
      items: items,
    ),
  );
}

Example #

You can also check the example for additional information.

Snapshots #

snapshot

173
likes
0
pub points
85%
popularity

Publisher

unverified uploader

This package allow hide or show bottom navigation bar while scrolling

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, rxdart, scroll_bars_common

More

Packages that depend on scroll_bottom_navigation_bar