skydoves / Orbital

🪐 Jetpack Compose Multiplatform library that allows you to implement dynamic transition animations such as shared element transitions.
Apache License 2.0
1.11k stars 36 forks source link

Use context-receivers to reduced the number of parameters passed #2

Closed qdsfdhvh closed 2 years ago

qdsfdhvh commented 2 years ago
rememberContentWithOrbitaryScope {
  // Before
  Box(Modifier.animateXX(this, XXSpec)) { .. }
  // After
  Box(Modifier.animateXX(XXSpec)) { .. }
}

It will be easier to use.

qdsfdhvh commented 2 years ago

Hey @qdsfdhvh, overall looks great to me! Could you please run the ./gradlew apiDump and push the changes before merging this PR? Thanks!

Thanks, it has pushed.