Skip to content

SliderTheme

Customizes the appearance of descendant Slider controls.

属性 ​

名称类型默认值说明
active_track_colorOptional[ColorValue]NoneOverrides the default value for active_color.
inactive_track_colorOptional[ColorValue]NoneOverrides the default value for inactive_color.
thumb_colorOptional[ColorValue]NoneOverrides the default value for thumb_color.
overlay_colorOptional[ColorValue]NoneOverrides the default value for overlay_color.
value_indicator_colorOptional[ColorValue]NoneThe color given to the Slider's value indicator to draw itself with.
disabled_thumb_colorOptional[ColorValue]NoneThe color given to the thumb to draw itself with when the Slider is disabled.
value_indicator_text_styleOptional[TextStyle]NoneThe TextStyle for the text on the value indicator.
mouse_cursorOptional[ControlStateValue[MouseCursor]]NoneOverrides the default value for mouse_cursor.
active_tick_mark_colorOptional[ColorValue]NoneThe color of the track's tick marks that are drawn between the min position and the current thumb position.
disabled_active_tick_mark_colorOptional[ColorValue]NoneThe color of the track's tick marks that are drawn between the current thumb osition and the max position when the Slider is disabled.
disabled_active_track_colorOptional[ColorValue]NoneThe color of the Slider track between the min position and the current thumb position when the Slider is disabled.
disabled_inactive_tick_mark_colorOptional[ColorValue]NoneThe color of the track's tick marks that are drawn between the current thumb position and the max position when the Slider is disabled.
disabled_inactive_track_colorOptional[ColorValue]NoneThe color of the Slider track between the current thumb position and the max position when the Slider is disabled.
disabled_secondary_active_track_colorOptional[ColorValue]NoneThe color of the Slider track between the current thumb position and the secondary_track_value position when the Slider is disabled.
inactive_tick_mark_colorOptional[ColorValue]NoneThe color of the track's tick marks that are drawn between the current thumb position and the max position.
overlapping_shape_stroke_colorOptional[ColorValue]NoneThe color given to the perimeter of the top range thumbs of a RangeSlider when the thumbs are overlapping and the top range value indicator when the value indicators are overlapping.
min_thumb_separationOptional[Number]NoneLimits the thumb's separation distance. Use this only if you want to control the visual appearance of the thumbs in terms of a logical pixel value. This can be done when you want a specific look for thumbs when they are close together. To limit with the real values, rather than logical pixels, the values can be restricted by the parent.
secondary_active_track_colorOptional[ColorValue]NoneOverrides the default value for secondary_active_color.
track_heightOptional[Number]NoneThe height of the Slider track.
value_indicator_stroke_colorOptional[ColorValue]NoneThe color given to the value indicator shape stroke.
interactionOptional[SliderInteraction]NoneOverrides the default value for interaction.
paddingOptional[PaddingValue]NoneOverrides the default value for padding.
track_gapOptional[Number]NoneThe size of the gap between the active and inactive tracks of the gapped slider track shape.
thumb_sizeOptional[ControlStateValue[Size]]NoneThe size of the handle thumb shape thumb.
year_2023boolFalseOverrides the default value for year_2023.

关注我,学习大模型、大数据、Python等热门技术。