I created a new Android Studio project and seleced Navigation drawer activity
In activity_main_drawer.xml I changed the icon path to a file in drawable folder as below
<item
android:id="@+id/nav_camera"
android:icon="@drawable/nav_logo_premium"
android:title="Import" />
It changed the icon. but It does not show original color. It shows as ash color I think I need to change the theme. after spending hours I could not find the solution.
I really appreciate any kind of help.
Because i did not change code I did not attached all files source code here
Please see attached screenshot Screenshot
Changing the Icon Color To change the drawer icon color in Flutter: Simply add the iconTheme property inside the AppBar widget and assign the IconThemeData(color: [your_color]).
Use BadgeDrawerArrowDrawable to provide a badge and/or count to the hamburger icon. To use BadgeDrawerArrowDrawable with DrawerLayout following code snippet can help. To display only Badge icon enable the badge and set the text to null.
Force NavigationView
to stop tinting the icons in MainActivity.java:
NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
navigationView.setItemIconTintList(null);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With