Skip to content

Releases: mahozad/wavy-slider

v0.8.0

22 Jan 13:36
83e764b
Compare
Choose a tag to compare

Changelog

  • Rename the wave movement option AUTO to BACKWARD
  • 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
  • Add ability to provide custom waveHeight animation spec (with the new animationSpecs 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 to incremental
  • Fix the bug when wavePeriod is equal to or less than Int.MIN_VALUE milliseconds

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

v0.7.0

20 Jan 16:03
7c7c344
Compare
Choose a tag to compare

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 range Int.MIN_VALUE..Int.MAX_VALUE.milliseconds stops the animation
  • Rename AnimationDirection to WaveMovement
  • Rename WaveMovement.UNSPECIFIED entry to WaveMovement.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
  • 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
  • Reorder parameters of the Composables

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

v0.6.0

18 Jan 16:13
b01e089
Compare
Choose a tag to compare

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 and waveLength
  • Update the animation used for waveHeight change

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

v0.5.0

14 Jan 15:56
dfa6963
Compare
Choose a tag to compare

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 for waveLength (make the wave a straight line like a regular slider)
  • Accept 0 and negative values for waveThickness (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

17 Dec 17:20
Compare
Choose a tag to compare

Changelog

  • Add support for IOS (tentative; not tested)
  • Update Kotlin to 1.9.21
  • Update Compose Multiplatform to 1.5.11 (which is based on Compose 1.5.4)

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

v0.3.0

20 Oct 08:03
Compare
Choose a tag to compare

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 to 0.dp

v0.2.0

19 Oct 18:44
Compare
Choose a tag to compare

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)
  • 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

v0.0.1

10 Jul 11:59
Compare
Choose a tag to compare

This is the first release of the library.