Skip to content

Commit f9368de

Browse files
committed
Update documentation of parameters in README
1 parent 2b3dcae commit f9368de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ fun MyComposable() {
8181
WavySlider(
8282
value = fraction,
8383
onValueChange = { fraction = it },
84-
waveLength = 16.dp, // Set this to 0.dp to get a regular Slider
85-
waveHeight = 16.dp, // Set this to 0.dp to get a regular Slider
84+
waveLength = 16.dp, // Set this to 0.dp to make the Slider flat
85+
waveHeight = 16.dp, // Set this to 0.dp to make the Slider flat
8686
waveVelocity = 15.dp to HEAD, // Speed per second and its direction
87-
waveThickness = 4.dp, // Defaults to the specified trackThickness
88-
trackThickness = 4.dp, // Defaults to 4.dp, same as regular Slider
87+
waveThickness = 4.dp, // Defaults to values based on Material 2/3
88+
trackThickness = 4.dp, // Defaults to values based on Material 2/3
8989
incremental = false, // Whether to gradually increase waveHeight
9090
// animationSpecs = ... // Customize various animations of the wave
9191
)

0 commit comments

Comments
 (0)