主题
SliderTheme
Customizes the appearance of descendant Slider controls.
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
active_track_color | Optional[ColorValue] | None | Overrides the default value for active_color. |
inactive_track_color | Optional[ColorValue] | None | Overrides the default value for inactive_color. |
thumb_color | Optional[ColorValue] | None | Overrides the default value for thumb_color. |
overlay_color | Optional[ColorValue] | None | Overrides the default value for overlay_color. |
value_indicator_color | Optional[ColorValue] | None | The color given to the Slider's value indicator to draw itself with. |
disabled_thumb_color | Optional[ColorValue] | None | The color given to the thumb to draw itself with when the Slider is disabled. |
value_indicator_text_style | Optional[TextStyle] | None | The TextStyle for the text on the value indicator. |
mouse_cursor | Optional[ControlStateValue[MouseCursor]] | None | Overrides the default value for mouse_cursor. |
active_tick_mark_color | Optional[ColorValue] | None | The color of the track's tick marks that are drawn between the min position and the current thumb position. |
disabled_active_tick_mark_color | Optional[ColorValue] | None | The 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_color | Optional[ColorValue] | None | The color of the Slider track between the min position and the current thumb position when the Slider is disabled. |
disabled_inactive_tick_mark_color | Optional[ColorValue] | None | The 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_color | Optional[ColorValue] | None | The color of the Slider track between the current thumb position and the max position when the Slider is disabled. |
disabled_secondary_active_track_color | Optional[ColorValue] | None | The color of the Slider track between the current thumb position and the secondary_track_value position when the Slider is disabled. |
inactive_tick_mark_color | Optional[ColorValue] | None | The color of the track's tick marks that are drawn between the current thumb position and the max position. |
overlapping_shape_stroke_color | Optional[ColorValue] | None | The 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_separation | Optional[Number] | None | Limits 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_color | Optional[ColorValue] | None | Overrides the default value for secondary_active_color. |
track_height | Optional[Number] | None | The height of the Slider track. |
value_indicator_stroke_color | Optional[ColorValue] | None | The color given to the value indicator shape stroke. |
interaction | Optional[SliderInteraction] | None | Overrides the default value for interaction. |
padding | Optional[PaddingValue] | None | Overrides the default value for padding. |
track_gap | Optional[Number] | None | The size of the gap between the active and inactive tracks of the gapped slider track shape. |
thumb_size | Optional[ControlStateValue[Size]] | None | The size of the handle thumb shape thumb. |
year_2023 | bool | False | Overrides the default value for year_2023. |