android / compose-samples

Official Jetpack Compose samples.
https://developer.android.com/jetpack/compose
Apache License 2.0
19.84k stars 4.71k forks source link

Jetsnack - Migrate to Material 3 #1437

Closed riggaroo closed 1 month ago

riggaroo commented 1 month ago

Jetsnack sample is using Material 2 instead of Material 3, keeping most of the UI the same as previously. Material 3 is the preferred choice for Material.

This pull request migrates to using M3, as well as fixes the filters screen selection to have a shared element transition to show and hide the dialog.

https://github.com/user-attachments/assets/0121a41c-2aff-4bb0-abc3-d2075a8f2bd4

It also fixes build issues some machines were experiencing, where there is a mismatch in JVM versions by setting jvmToolchain version.