Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling text grow animation for selected BottomNavigationBarItem in Flutter

When I tap on BottomNavigationBarItem in my flutter app, I see animation - selected item's font size is increased.

Is there any way to disable it or control this behaviour?

like image 921
moonvader Avatar asked Dec 29 '18 17:12

moonvader


2 Answers

Yes we can do this by setting type to BottomNavigationBarType.fixed

BottomNavigationBar(
    type: BottomNavigationBarType.fixed,
like image 172
AKASH WANGALWAR Avatar answered Oct 19 '22 18:10

AKASH WANGALWAR


selectedFontSize: fontSize,
unselectedFontSize: fontSize,
like image 5
WTree Avatar answered Oct 19 '22 18:10

WTree