EdricChan03 / EdricChan03/studybuddy-android
[Enhancement] Add shared element transitions to Compose screens
- Dominant language
- Kotlin
- Stars
- 23
- Forks
- 9
- Avg merge
- 9h 1m
- Merged PRs (30d)
- 1
Description
Sub-tracking issue for #368 to add shared element transitions where applicable (e.g. tasks list screen -> task details screen)
Shared element transitions have officially landed in Compose Animation 1.7.x 🥳, so the information below is no longer applicable
## Old notes
Now that [shared element transitions have landed in the AndroidX repository](https://twitter.com/doris4lt/status/1775955737560457481) ~~(but is unfortunately yet to be released in an alpha), we can try experimenting with it. The linked ~~twitter~~ X thread shows that we can try it out by using a snapshot version, perhaps something like below:~~
`settings.gradle.kts`
```kotlin
repositories {
maven(url = "https://androidx.dev/snapshots/builds/11677275/artifacts/repository")
}
```
`gradle/libs.versions.toml`
```diff
-androidx-compose-animation = { module = "androidx.compose.animation:animation", version.ref = "androidx-compose" }
+androidx-compose-animation = "androidx.compose.animation:animation:1.7.0-SNAPSHOT"
```
~~Because there's currently no alpha release with this change, the "blocked" tag is added for now~~
## Tasks
* [ ] Run through demos for an example of the API usage (see https://github.com/androidx/androidx/commit/c5f36c050e6ec86e8a504031b3cd7602a11f4d9e)
* [ ] Add shared element transitions to tasks page (see also #582)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.