PersistentBottomNavBar
PersistentBottomNavBar copied to clipboard
Change color when using Image instead of Icon
I'm using Image.asset for the 'icon' parameter. Is it possible to add more parameters to the PersistentBottomNavBarItem to control the color if the icon when Image.asset is used as icon?
Try using ImageIcon
The color is changed but I can't control its size. Is there a recommended size of source image I should use?
Thank you for the feedback. I will look into this.
Any news about this?
any update on this plz
Hi Guys,
PersistentBottomNavBarItem( icon: Image.asset( 'assets/icons/dashboard_active.png', width: 24.0, height: 24.0, ), title: "Dashboard", activeColorPrimary: Colors.green, inactiveColorPrimary: Colors.grey, inactiveIcon: Image.asset( 'assets/icons/dashboard_inactive.png', width: 24.0, height: 24.0, ), ),
hope this example helps you Thanks
No matter what I do, if I use my own images as icon (Style 6) it just shows a very very small icon. When I use standard Icons from material library the size is fine. What size of images should be required?
It is fixed with version 4.1.10 in https://pub.dev/packages/persistent_bottom_nav_bar_v2