How to change BottomNavigationBarItem icon when selected, Flutter

There is new feature added in flutter in BottomNavigationBarItem that is active icon. we can use it to tell what should be the icon when a tab is active bottomNavigationBar : new BottomNavigationBar( currentIndex: index, onTap: (int index) { setState(() { this.index = index; } ); _navigateToScreens(index); }, type: BottomNavigationBarType.fixed, items: [ new BottomNavigationBarItem( backgroundColor: … Read more

setOnNavigationItemSelectedListener deprecated

Its deprecated according to github sources: BottomNavigationView.setOnNavigationItemSelectedListener In its comment you can read: @deprecated Use {@link NavigationBarView#setOnItemSelectedListener(OnItemSelectedListener)} * instead. so use NavigationBarView.setOnItemSelectedListener from its base class: /** * Set a listener that will be notified when a navigation item is selected. This listener will * also be notified when the currently selected item is reselected, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)