https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
r

Ryan Smith

03/22/2023, 11:30 PM
Is Material Design 3 available for compose for desktop? I added the dependency to my build.gradle.kts and had a successful sync, but still get components from M2 instead of M3
e.g. DropdownMenu, DropdownMenuItem
Aha, found it. I was using the wrong group and artifact IDs. Instead of
androidx.compose.material3:material3
I needed
org.jetbrains.compose.material3:material3-desktop
a

Adam Brown

03/23/2023, 7:06 AM
you should use the built in I think rather than specifying it like a normal dependency
r

Ryan Smith

03/23/2023, 11:45 PM
Oh whoa... I've never seen this way of declaring dependencies. Do you have a link handy w.r.t. documentation? Is this specific to multiplatform projects? Just compose multiplatform?
a

Adam Brown

03/24/2023, 7:48 AM
ya its just for compose multiplatform afaik
r

Ryan Smith

03/26/2023, 7:07 PM
Thanks! I switched over to doing it this way, much easier and clearer to read.
468 Views