You can use androidx.compose.material.Icon, which contains some of the icons of Material Icons.
You can include full set of material icons via material-icons-extended with the following warning:
This module contains all Material icons. It is a very large dependency and should not be included directly.
You can add material icon via Android Studio:
File -> New -> Vector Asset -> Clip Art.
To load vector icon in Compose
Icon( painter = painterResource(id = R.drawable.ic_baseline_perm_media_24), contentDescription = "Media")
❤️ Is this article helpful?
Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.
Do send some 💖 to @d_luaz or share this article.
✨ By Desmond Lua
A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz
👶 Apps I built
Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.