Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error selectedIndex #18

Closed
malikdoksoz opened this issue Jul 10, 2019 · 3 comments
Closed

Error selectedIndex #18

malikdoksoz opened this issue Jul 10, 2019 · 3 comments

Comments

@malikdoksoz
Copy link

malikdoksoz commented Jul 10, 2019

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
Copy link
Owner

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

@Sarmed-armis
Copy link

hey this is still not work

bottom_navy_bar: ^3.0.0

error is selectedIndex parameter is not define

@pedromassango
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants