File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
kv-color-picker/src/main/kotlin/com/kavi/droid/color/picker/ui/common Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import androidx.compose.material3.OutlinedTextField
2121import androidx.compose.material3.Slider
2222import androidx.compose.material3.SliderDefaults
2323import androidx.compose.material3.Text
24- import androidx.compose.material3.TextFieldDefaults
2524import androidx.compose.runtime.Composable
2625import androidx.compose.runtime.MutableState
2726import androidx.compose.runtime.getValue
@@ -59,7 +58,7 @@ import com.kavi.droid.color.picker.R
5958@Composable
6059internal fun ColorSlider (colorLabel : String , colorValueState : MutableState <Float >, color : Color ) {
6160
62- val sliderValue = remember { mutableStateOf(TextFieldValue (" 0 " )) }
61+ val sliderValue = remember { mutableStateOf(TextFieldValue (toColorRange(colorValueState.value).toString() )) }
6362
6463 /* *
6564 * Displays a slider for adjusting the given [colorValueState] associated with the provided [colorLabel].
You can’t perform that action at this time.
0 commit comments