pinterest_nav_bar 0.0.1+2 copy "pinterest_nav_bar: ^0.0.1+2" to clipboard
pinterest_nav_bar: ^0.0.1+2 copied to clipboard

outdated

A new Flutter package project.

pinterest_nav_bar #

Pinterest app's Like bottom navigation bar.

Getting Started #

Wrap you [MaterialApp] widget with [PinterestNavBar] widget

    return PinterestNavBarController(
      child: MaterialApp(
        title: 'Pinterest Nav Bar Example',
        home: Pages(),
      ),
    );

Adding the widget

  • Note: it is recommended that you use this widget as the Floadting Action Button
      floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
      floatingActionButton: PinterestNavBar(
        currentIndex: selectedPageIndex,
        onTap: (i) {
          print('PinterestNavBar.onTap($i)');
          setState(() {
            selectedPageIndex = i;
          });
        },
        items: [
          Icons.home,
          Icons.search,
          Icons.chat_bubble_outline_rounded,
          Icons.person
        ],
      ),
  • check out the example app code for complete understanding