BilalShahid13 / PersistentBottomNavBar

A highly customizable persistent bottom navigation bar for Flutter
BSD 3-Clause "New" or "Revised" License
524 stars 394 forks source link

Increase icon size #277

Open suchita-ounce opened 2 years ago

suchita-ounce commented 2 years ago

I want to increase the size of icon. size parameter isn't working for me because I am using icon from asset. Below is the code I am using:

PersistentBottomNavBarItem(
        icon: new Image.asset("images/scan.png",width: 40, height: 40),
        title: ("Scan"),
      )

tabbar1

thirakorn commented 2 years ago

Work for me. Use v2 https://github.com/jb3rndt/PersistentBottomNavBarV2

pupubird commented 1 year ago

For those are stumbled across this issue, just convert your image asset to icon: https://medium.com/deviniti-technology-driven-blog/the-best-way-to-add-custom-icons-to-your-flutter-project-6381ab697813