Hello, how to use material symbols with compose
# compose
b
Hello, how to use material symbols with compose
r
Assuming you mean icons... With Compose Material I think you get a bunch for “free” but you can get the whole set with
androidx.compose.material:material-icons-extended
, for example,
androidx.compose.material:material-icons-extended:1.3.0-alpha02
. I then use it like this:
Copy code
IconButton(onClick = navigateBack ) {
  Icon(Icons.Filled.ArrowBack, contentDescription = "Back")
}
t
There's now material Symbol it's different from icons and for the moment there's no direct compose integration.
r
Thanks. I see them now, they’re new “parameterized” icons... https://material.io/blog/introducing-symbols
b
My guess is there will be a new material component for symbols which will be different from icons
208 Views