Compose-Settings
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Compose-Settings
ui-tiles-extended
/
com.alorma.compose.settings.ui
/
SettingsSlider
Settings
Slider
@
Composable
fun
SettingsSlider
(
title
:
@
Composable
(
)
->
Unit
,
value
:
Float
,
onValueChange
:
(
Float
)
->
Unit
,
modifier
:
Modifier
=
Modifier
,
subtitle
:
@
Composable
(
)
->
Unit
?
=
null
,
icon
:
@
Composable
(
)
->
Unit
?
=
null
,
enabled
:
Boolean
=
LocalSettingsGroupEnabled.current
,
valueRange
:
ClosedFloatingPointRange
<
Float
>
=
0f..1f
,
steps
:
Int
=
0
,
onValueChangeFinished
:
(
)
->
Unit
?
=
null
,
colors
:
SettingsTileColors
=
SettingsTileDefaults.colors()
,
sliderColors
:
SliderColors
=
SliderDefaults.colors( thumbColor = colors.actionColor(enabled), activeTrackColor = colors.actionColor(enabled), inactiveTrackColor = colors.actionColor(enabled).copy(alpha = 0.12f), )
,
shape
:
Shape
=
SettingsTileDefaults.shape()
,
tonalElevation
:
Dp
=
SettingsTileDefaults.Elevation
,
shadowElevation
:
Dp
=
SettingsTileDefaults.Elevation
)