floating_bottom_nav 1.0.0 copy "floating_bottom_nav: ^1.0.0" to clipboard
floating_bottom_nav: ^1.0.0 copied to clipboard

Floating bottom navigation package for flutter.

floating_bottom_nav #

GitHub repo size GitHub code size in bytes GitHub top language GitHub issues GitHub license

floating_bottom_nav is a free and open source (MIT license) Material Flutter BottomNavigationBar that supports customization of background color, selectedIconColor, unselectedItemColor also light & dark theme support.

Get started #

Add this to your package's pubspec.yaml file:

floating_bottom_nav: '^1.0.0'

Install it #

You can install packages from the command line:

$ flutter pub get

Alternatively, your editor might support flutter pub get.

Import it #

Now in your Dart code, you can use:

import 'package:floating_bottom_nav/floating_bottom_nav.dart';

How to use #

Adding the widget

  • Note: it is recommended that you set the floatingActionButtonLocation to [FloatingActionButtonLocation.centerDocked]
  • Note: it is recommended that you use this widget as the Floadting Action Button
      floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
      floatingActionButton: FloatingBottomNavBar(
        currentIndex: _selectedIndex,
        onTap: (int index) {
          setState(() {
            _selectedIndex = index;
          });
          _pageController.animateToPage(
            _selectedIndex,
            duration: const Duration(milliseconds: 600),
            curve: Curves.easeOutQuad,
          );
        },
        items: const [
          Icons.home,
          Icons.explore,
          Icons.favorite,
          Icons.person,
        ],
      ),

Source #

Source code and example of this library can be found in git:

$ git clone https://github.com/gairick-saha/floating_bottom_nav.git
3
likes
120
pub points
27%
popularity

Publisher

verified publishergairicksaha.com

Floating bottom navigation package for flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on floating_bottom_nav