PersistentBottomNavBar icon indicating copy to clipboard operation
PersistentBottomNavBar copied to clipboard

Change color when using Image instead of Icon

Open ronytesler opened this issue 4 years ago • 8 comments

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?

ronytesler avatar Feb 19 '21 14:02 ronytesler

Try using ImageIcon

nialljvs avatar Feb 24 '21 06:02 nialljvs

The color is changed but I can't control its size. Is there a recommended size of source image I should use?

ronytesler avatar Feb 27 '21 02:02 ronytesler

Thank you for the feedback. I will look into this.

BilalShahid13 avatar Mar 22 '21 09:03 BilalShahid13

Any news about this?

AgustinV08 avatar May 17 '21 19:05 AgustinV08

any update on this plz

Gagan5278 avatar Nov 04 '21 16:11 Gagan5278

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

KamalVerma297 avatar Feb 09 '22 16:02 KamalVerma297

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?

ffaridi1 avatar Feb 13 '22 02:02 ffaridi1

It is fixed with version 4.1.10 in https://pub.dev/packages/persistent_bottom_nav_bar_v2

jb3rndt avatar Apr 25 '22 09:04 jb3rndt