Skip to content

v0.9.0

Compare
Choose a tag to compare
@mahozad mahozad released this 26 Jan 13:49
· 70 commits to main since this release
e2b5e16

Changelog

  • Merge wavePeriod and waveMovement parameters into a single waveVelocity parameter
    • It is now more intuitive: a higher Dp means faster, a lower Dp means slower. 0 means stop
    • The speed and direction is now specified as a single argument (like 15.dp to TAIL)
    • The speed unit is Dp per second
    • To stop the movement, set speed to zero or a negative value
    • WaveMovement was renamed to WaveDirection, its STOPPED option removed, and other options renamed
    • The amount of movement is now independent of waveLength
      To make it depend on waveLength, simply set the speed to waveLength or a product of it
    • Dp (in contrast to Duration) can be animated with animateDpAsState (but you don't need to animate it; see the below entry)
  • Add ability to provide custom animation spec for wave velocity (using the new waveVelocityAnimationSpec of animationSpecs parameter)
    • Makes it possible to gracefully/gradually change speed/direction of wave movement
    • It is applied when the speed or the direction or both are changed
    • To get the pervious behavior (immediate/sudden/abrupt change), pass a snap() animation spec
  • Add support for specifying the value range (with the new valueRange parameter) (see #9)
  • Fix a very subtle bug in Material 2 variant when wave height was animated to more than thumb size
  • Add some minor optimizations

For your convenience, an archive of the library artifacts is also available below.