File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
demo/src/main/java/io/monstarlab/mosaic/features
slider/src/main/java/io/monstarlab/mosaic/slider Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,10 @@ import androidx.compose.ui.Modifier
18
18
import androidx.compose.ui.graphics.Color
19
19
import androidx.compose.ui.tooling.preview.Preview
20
20
import androidx.compose.ui.unit.dp
21
- import io.monstarlab.mosaic.slider.ParabolicValueDistribution
22
21
import io.monstarlab.mosaic.slider.Slider
23
22
import io.monstarlab.mosaic.slider.SliderColors
24
23
import io.monstarlab.mosaic.slider.SliderValueDistribution
25
24
import kotlin.math.roundToInt
26
- import kotlin.math.sqrt
27
25
import androidx.compose.material3.Slider as MaterialSlider
28
26
29
27
@Composable
@@ -55,7 +53,7 @@ fun SliderDemo() = Scaffold(modifier = Modifier) {
55
53
valuesDistribution = SliderValueDistribution .parabolic(
56
54
a = (1000 - 100 * 0.1f ) / (1000 * 1000 ),
57
55
b = 0.1f ,
58
- c = 1f
56
+ c = 1f ,
59
57
),
60
58
)
61
59
}
@@ -98,7 +96,6 @@ fun MosaicSliderDemo(
98
96
}
99
97
}
100
98
101
-
102
99
@Preview
103
100
@Composable
104
101
private fun PreviewSliderDemo () {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public interface SliderValueDistribution {
29
29
public class ParabolicValueDistribution (
30
30
private val a : Float ,
31
31
private val b : Float ,
32
- private val c : Float
32
+ private val c : Float ,
33
33
) : SliderValueDistribution {
34
34
35
35
override fun inverse (value : Float ): Float {
You can’t perform that action at this time.
0 commit comments