| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Note: This is not meant to be a maintained library.
Proof of concept exploration of how to implement SharedElement transition in Jetpack Compose.
Inspired by Flutter Hero widget.
Transition consists of following animations:
UsersListScreen:![]() UserDetailScreen: ![]() |
Slowed down transition animation:![]() |
|---|
@Composable
fun ScreenA() {
// ...
SharedElement(tag = "tag", type = SharedElementType.FROM) {
Image(image, Modifier.preferredSize(48.dp))
}
// ...
}
@Composable
fun ScreenB() {
// ...
SharedElement(tag = "tag", type = SharedElementType.TO) {
Image(image, Modifier.preferredSize(200.dp))
}
// ...
}SharedElementsRoot {
// change between ScreenA and ScreenB
}See sample usage with UsersListScreen and UserDetailsScreen here.
Considering the experimental state of this library and state of Jetpack Compose itself there are some issues described here.
| Back | FazBrowse Home | New Git URL |