v0.9.0
Changelog
- Merge
wavePeriod
andwaveMovement
parameters into a singlewaveVelocity
parameter- It is now more intuitive: a higher
Dp
means faster, a lowerDp
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 toWaveDirection
, itsSTOPPED
option removed, and other options renamed- The amount of movement is now independent of
waveLength
To make it depend onwaveLength
, simply set the speed towaveLength
or a product of it Dp
(in contrast toDuration
) can be animated withanimateDpAsState
(but you don't need to animate it; see the below entry)
- It is now more intuitive: a higher
- Add ability to provide custom animation spec for wave velocity (using the new
waveVelocityAnimationSpec
ofanimationSpecs
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.