pedromassango / bottom_navy_bar

A beautiful and animated bottom navigation
https://youtu.be/jJPSKEEiN-E
Apache License 2.0
1.04k stars 219 forks source link

Error selectedIndex #18

Closed malikdoksoz closed 5 years ago

malikdoksoz commented 5 years ago
BottomNavyBar(
   selectedIndex: _selectedIndex,
   showElevation: true, // use this to remove appBar's elevation
   onItemSelected: (index) => setState(() {
              _selectedIndex = index;
              _pageController.animateToPage(index,
                  duration: Duration(milliseconds: 300), curve: Curves.ease);
    }),

BottomNavyBar has a currentIndex not selectedIndex. bottom_navy_bar: ^3.0.0 Flutter 1.7.8

pedromassango commented 5 years ago

Thanks @malikdoksoz. Use selectedIndex to update the current index.

Sarmed-armis commented 4 years ago

hey this is still not work

bottom_navy_bar: ^3.0.0

error is selectedIndex parameter is not define

pedromassango commented 4 years ago

@Sarmed-armis please use the latest version that is currently on: 5.3.2