https://kotlinlang.org logo
#compose
Title
# compose
b

brabo-hi

07/29/2022, 12:10 AM
Hello, how to use material symbols with compose
r

Rick Regan

07/29/2022, 2:45 AM
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

Tolriq

07/29/2022, 5:52 AM
There's now material Symbol it's different from icons and for the moment there's no direct compose integration.
r

Rick Regan

07/29/2022, 1:20 PM
Thanks. I see them now, they’re new “parameterized” icons... https://material.io/blog/introducing-symbols
b

brabo-hi

08/02/2022, 6:01 PM
My guess is there will be a new material component for symbols which will be different from icons
161 Views