dot_bottom_nav 0.0.2 copy "dot_bottom_nav: ^0.0.2" to clipboard
dot_bottom_nav: ^0.0.2 copied to clipboard

A flutter package that provides awesome bottom navigation bar with dot indicator

dot_bottom_nav #

A flutter package that provides awesome bottom navigation bar with dot indicator. The features is:

  1. Rounded bottom nav
  2. Floating bottom nav
  3. Dot indicator
  4. Customizable according to need
  5. Animated dot indicator

Installation #

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  dot_bottom_nav: ^0.0.1
  1. Import the package and use it in your Flutter App.
import 'package:dot_bottom_nav/dot_bottom_nav.dart';

Example #

SafeArea(
      child: Scaffold(
        extendBody: true, //  If you want to show body behind the navbar, it should be true
        body: ListView.builder(
            itemCount: 50,
            itemBuilder: (context, index) {
              return ListTile(
                leading: CircleAvatar(
                  backgroundColor: Colors.green,
                  child: Icon(Icons.account_circle),
                ),
                title: Text('Name $index'),
                subtitle: Text('Name $index'),
              );
            }),
        bottomNavigationBar: DotBottomNav(
          currentIndex: selectedIndex,
          selectedColor: Colors.indigo,
          unSelectedColor: Colors.black54,
          indicatorType: IndicatorType.bottom,
          dotIndicatorWidth: 8,
          enableDotIndicator: true,
          onTap: (value){
            setState(() {
              selectedIndex = value;
            });
          },
          navBarItems: [
            NavBarItems(icon: Icons.home, label: "Home"),
            NavBarItems(icon: Icons.email, label: "Email"),
            NavBarItems(icon: Icons.phone, label: "Phone"),
            NavBarItems(icon: Icons.settings, label: "Settings"),
          ],
        ),
      ),
    )
0
likes
120
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter package that provides awesome bottom navigation bar with dot indicator

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on dot_bottom_nav