https://kotlinlang.org logo
Title
t

Travis Griggs

03/21/2023, 11:59 PM
I'm a little confused. I'm trying to access M3 Icons shown at (https://fonts.google.com/icons). In particular the two radio button states shown. But when I try to refer to Icons.Default.RadioButton... it doesn't complete or anything like that seem to exist. I'm using the latest compose BOM plus M3.
b

Ben Trengrove [G]

03/22/2023, 12:02 AM
i

itnoles

03/22/2023, 12:05 AM
or extended for extremely large icons library
b

Ben Trengrove [G]

03/22/2023, 12:05 AM
Make sure you are running R8 minification in your release build as well to remove all the ones you aren't using
t

Travis Griggs

03/22/2023, 12:10 AM
Extended did the trick. Odd that radio buttons wasn't in the "core", but ok. Thanks for the minification hint
c

Chris Sinco [G]

03/22/2023, 3:13 AM
Is it not in core?
cc @Louis Pullen-Freilich [G] as I’m not sure how synchronized the Compose icon libraries are with the Material Symbols library online
l

Louis Pullen-Freilich [G]

03/22/2023, 1:47 PM
Material symbols aren't supported currently, only the older Material icons set
Core icons are the most commonly downloaded icons, and then also any icons required / recommended for use with material components. (E.g the menu icon, since you normally need a menu icon in the app bar) Radio button isn't a core icon because in most cases you can just use the RadioButton component, and set it to be uninteractable - that way it will still correctly follow the theme (colours and light / dark) unlike an icon