Skip to content

Releases: fornewid/material-motion-compose

0.6.2

05 Aug 08:50
Compare
Choose a tag to compare

Built to work with Jetpack Compose 1.0.1

What’s Changed

  • Update to Compose 1.0.1 (#60) @fornewid
  • Remove deprecated Material Motion APIs (#59) @fornewid
  • Remove deprecated non-Material Motion APIs (alpha, rotate, scale, translate) (#58) @fornewid

0.6.1

29 Jul 18:43
Compare
Choose a tag to compare

Built to work with Jetpack Compose 1.0.0

Please refer the 'Migrating from 0.5.x to 0.6.x' doc for seeing the API differences if manual migration is required.

Breaking changes

  • MaterialSharedAxis composable and Axis are deprecated.
    Use MaterialSharedAxis* composables or materialSharedAxis* motion specs for each axis instead.

All changes

0.6.0

29 Jul 04:54
Compare
Choose a tag to compare

Built to work with Jetpack Compose 1.0.0

Breaking changes

⚠️ MaterialMotion has been completely rewritten based on AnimatedContent.

So all classes in the soup.compose.material.motion.experimental package have been removed.

Please check the before and after in the following codes:

  • Shared axis

    - motionSpec = materialSharedAxis(Axis.X, forward = true, slideDistance = 30.dp)
    + motionSpec = materialSharedAxisXIn(forward = true, slideDistance = rememberSlideDistance(30.dp)) with
    +              materialSharedAxisXOut(forward = true, slideDistance = rememberSlideDistance(30.dp))
    
    - motionSpec = materialSharedAxis(Axis.Y, forward = true, slideDistance = 30.dp)
    + motionSpec = materialSharedAxisYIn(forward = true, slideDistance = rememberSlideDistance(30.dp)) with
    +              materialSharedAxisYOut(forward = true, slideDistance = rememberSlideDistance(30.dp))
    
    - motionSpec = materialSharedAxis(Axis.Z, forward = true)
    + motionSpec = materialSharedAxisZIn(forward = true) with
    +              materialSharedAxisZOut(forward = true)
  • Fade through

    - motionSpec = materialFadeThrough()
    + motionSpec = materialFadeThroughIn() with materialFadeThroughOut()
  • Fade (MotionSpec is not supported)

     // Before
     MaterialFade(
         targetState = visible
     ) { visible ->
         if (visible) {
             // contents
         }
     }
    
     // After
     MaterialFade(
         visible = visible
     ) {
         // contents
     }
  • Elevation scale

    - motionSpec = materialElevationScale()
    + motionSpec = materialElevationScaleIn() with materialElevationScaleOut()
  • Hold

    - motionSpec = hold()
    + motionSpec = holdIn() with holdOut()

⚠️ Deprecate ProvideMaterialMotions & Durations.

Instead, just pass a duration directly when creating material motion.

For example:

val motionSpec = materialFadeThroughIn(durationMillis = 300) with materialFadeThroughOut(durationMillis = 300)

⚠️ Deprecate non-Material Motion APIs. (alpha(), rotate(), scale(), translate())

All changes

0.5.2

15 Jul 14:05
Compare
Choose a tag to compare

Built to work with Jetpack Compose 1.0.0-rc02

What’s Changed

0.5.1

02 Jul 13:12
Compare
Choose a tag to compare

Built to work with Jetpack Compose 1.0.0-rc01

What’s Changed

0.5.0

19 Jun 17:33
Compare
Choose a tag to compare

Built to work with Jetpack Compose 1.0.0-beta09

New features

Using with AnimatedContent

New AnimatedContent composable is introduced in compose-animation 1.0.0-beta09.
Now you can use material motion with AnimatedContent.

If you wants to know more, please read 'Using with compose-animation' document.

But, these are experimental function. So it's probably not working well. 🙏
If you find an issue, please report it.

Breaking changes

Deprecate Crossfade

Now use official Crossfade instead.

All changes

0.4.8

16 Jun 18:53
Compare
Choose a tag to compare

Built to work with Jetpack Compose 1.0.0-beta09

What’s Changed

0.4.7

03 Jun 17:28
Compare
Choose a tag to compare

Built to work with Jetpack Compose 1.0.0-beta08

What’s Changed

0.4.6

19 May 11:35
Compare
Choose a tag to compare

Built to work with Jetpack Compose 1.0.0-beta07

What’s Changed

0.4.5

06 May 04:18
Compare
Choose a tag to compare

Built to work with Jetpack Compose 1.0.0-beta06

What’s Changed