Releases: mahozad/wavy-slider
Releases · mahozad/wavy-slider
v0.8.0
Changelog
- Rename the wave movement option
AUTO
toBACKWARD
- Add a new
FORWARD
wave movement option - Add a new
STOPPED
wave movement option- You can also set
wavePeriod
to zero to achieve the same thing
- You can also set
- Add ability to provide custom
waveHeight
animation spec (with the newanimationSpecs
parameter)- It even makes it possible to use a different animation spec only for when the slider is interacted with (see #8)
- Rename the parameter
shouldFlatten
toincremental
- Fix the bug when
wavePeriod
is equal to or less thanInt.MIN_VALUE
milliseconds
For your convenience, an archive of the library artifacts is also available below.
v0.7.0
Changelog
- Add ability to change wave movement speed or stop it altogether (using the new
wavePeriod
parameter)- Note that the speed of the wave movement will depend on the
waveLength
- Setting to
0.seconds
or to a duration outside the rangeInt.MIN_VALUE..Int.MAX_VALUE
.milliseconds stops the animation
- Note that the speed of the wave movement will depend on the
- Rename
AnimationDirection
toWaveMovement
- Rename
WaveMovement.UNSPECIFIED
entry toWaveMovement.AUTO
- Make
waveMovement
change smoothly - Provide default values for parameters of the default track used for the Material 3 variant
- Clean and expose default values (you need to import the extension properties)
- Provide default values for Material 2 variant as extension properties on the existing Material 2
SliderDefaults
- Provide default values for Material 3 variant as extension properties on the existing Material 3
SliderDefaults
- Remove
WavySliderDefaults
used for the Material 3 variant
- Provide default values for Material 2 variant as extension properties on the existing Material 2
- Make
trackThickness
parameter non-null- To provide the default value for it either use
SliderDefaults.TrackThickness
or do not pass the argument at all - To hide the track, use
0.dp
or a negative dp
- To provide the default value for it either use
- Reorder parameters of the Composables
For your convenience, an archive of the library artifacts is also available below.
v0.6.0
Changelog
- Re-implement the wave drawing (see the live Web demo). It provides the following improvements:
- The tips of the wave now have a smooth finish and a smooth animation
- When flattened is true, the transition of wave heights is now smooth
- The wave now has the proper height
- The component height is also now accurate
- Update the default values for
waveHeight
andwaveLength
- Update the animation used for
waveHeight
change
For your convenience, an archive of the library artifacts is also available below.
v0.5.0
Changelog
- Add a live interactive Web demo
- Fix the sizes not being in pixel (also makes the wavy slider sizes consistent across platforms)
- Fix the problem with slider tail not being long enough when animation was set to LTR
- Accept
0
and negative values forwaveLength
(make the wave a straight line like a regular slider) - Accept
0
and negative values forwaveThickness
(hide the wave) - Improve height calculation of the component (aka overall height of the wave slider composable)
- Update duration of
waveHeight
change from 1s to 300ms - Add manual visual (regression) tests
For your convenience, an archive of the library artifacts is also available below.
v0.4.0
v0.3.0
Note: If you want the library on IOS as well, read the IOS support section in README.
Changelog
- Throw exception if
waveLength
is <=0.dp
- Fix the bug when
waveHeight
is set to0.dp
v0.2.0
Notes
This new release has version 0.2.0
not 0.0.2
If you want the library on IOS as well, read the IOS support section in README.
There is a regression bug when setting waveHeight
to 0
.
Changelog
- Add Material 3 variant of the component
- Move files to new packages
- The wave height is now taken into account and the component will have proper height
- Fix the wave being clipped when its height was larger than the thumb height
- Update Kotlin to 1.9.10
- Update compile SDK and target SDK to 34
- Update Compose Multiplatform to 1.5.3 (which is based on Compose 1.5.0)
- It also fixes this bug: JetBrains/compose-multiplatform#2798
- Update minSDK used for showcase from 24 to 21 (the library also has minSDK 21)
- The library has also now been published to GitHub Packages