I have a doubt about the icon property of Quick Icons.
Can someone give a proper example of how to use it?
A list of names of native supported icons would be great.
There is a way to use custom icons? If yes, how?
I had the same confusion but reading the documentation helped.
You can add native android icons following these steps
In Project Hierarchy
Your app name > android > new > Image Asset
You'll be shown this window.
Configure the settings as shown in the image, and change the icon
, name
and color
according to your requirement.
After adding the icon, assign its name to the quick_actions
item
ShortcutItem(
type: 'add',
localizedTitle: 'Add Goal',
icon: 'add_icon')
Assets.xcassets/AppIcon.appiconset
in your extracted app icons. I'm not sure on this, so please correct me if I'm wrong, but here's what I did:I'm not sure if this is required, but I painted my pictures completely black, which seems to be working flawlessly.
To use Material Icons, you can find & download from a huge list of icons from https://pictogrammers.com/library/mdi/. I recommend you always to download the SVG version.
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