TDSliderThemeData class
slider显示样式配置
- Inheritance
-
- Object
- SliderThemeData
- TDSliderThemeData
Constructors
-
TDSliderThemeData({double? trackHeight = 4, Color? activeTrackColor = const Color(0xFF0052D9), Color? inactiveTrackColor = const Color(0xFFDCDCDC), Color? secondaryActiveTrackColor, Color? disabledActiveTrackColor = const Color(0xFFB5C7FF), Color? disabledInactiveTrackColor = const Color(0xFFEEEEEE), Color? disabledSecondaryActiveTrackColor, Color? activeTickMarkColor = const Color(0xFF0052D9), Color? inactiveTickMarkColor = const Color(0xFFDCDCDC), Color? disabledActiveTickMarkColor = const Color(0xFFB5C7FF), Color? disabledInactiveTickMarkColor = const Color(0xFFEEEEEE), Color? thumbColor = Colors.white, Color? overlappingShapeStrokeColor, Color? disabledThumbColor = Colors.white, Color? overlayColor, Color? valueIndicatorColor, SliderComponentShape? overlayShape = const TDNoOverlayShape(), SliderTickMarkShape? tickMarkShape = const TDRoundSliderTickMarkShape(), SliderComponentShape? thumbShape = const TDRoundSliderThumbShape(), SliderTrackShape? trackShape = const TDRoundedRectSliderTrackShape(), SliderComponentShape? valueIndicatorShape, RangeSliderTickMarkShape? rangeTickMarkShape = const TDRoundRangeSliderTickMarkShape(), RangeSliderThumbShape? rangeThumbShape = const TDRoundRangeSliderThumbShape(), RangeSliderTrackShape? rangeTrackShape = const TDRoundedRectRangeSliderTrackShape(), RangeSliderValueIndicatorShape? rangeValueIndicatorShape, ShowValueIndicator? showValueIndicator = ShowValueIndicator.never, TextStyle? valueIndicatorTextStyle, double? minThumbSeparation, RangeThumbSelector? thumbSelector, MaterialStateProperty<
MouseCursor?> ? mouseCursor, bool showScaleValue = false, bool showThumbValue = false, int? divisions, TextStyle? scaleTextStyle = const TextStyle(fontSize: 14, color: Color(0xE6000000)), TextStyle disabledScaleTextStyle = const TextStyle(fontSize: 14, color: Color(0x42000000)), TextStyle? thumbTextStyle = const TextStyle(fontSize: 14, color: Color(0xE6000000)), TextStyle disabledThumbTextStyle = const TextStyle(fontSize: 14, color: Color(0x42000000)), double min = 0.0, double max = 1.0, ScaleFormatter? scaleFormatter})
Properties
- activeTickMarkColor → Color?
-
The color of the track's tick marks that are drawn between the Slider.min
position and the current thumb position.
finalinherited
- activeTrackColor → Color?
-
The color of the Slider track between the Slider.min position and the
current thumb position.
finalinherited
- allowedInteraction → SliderInteraction?
-
Allowed way for the user to interact with the Slider.
finalinherited
- disabledActiveTickMarkColor → Color?
-
The color of the track's tick marks that are drawn between the Slider.min
position and the current thumb position when the Slider is disabled.
finalinherited
- disabledActiveTrackColor → Color?
-
The color of the Slider track between the Slider.min position and the
current thumb position when the Slider is disabled.
finalinherited
- disabledInactiveTickMarkColor → Color?
-
The color of the track's tick marks that are drawn between the current
thumb position and the Slider.max position when the Slider is
disabled.
finalinherited
- disabledInactiveTrackColor → Color?
-
The color of the Slider track between the current thumb position and the
Slider.max position when the Slider is disabled.
finalinherited
- disabledScaleTextStyle → TextStyle
-
disabled状态时刻度的样式
final
- disabledSecondaryActiveTrackColor → Color?
-
The color of the Slider track between the current thumb position and the
Slider.secondaryTrackValue position when the Slider is disabled.
finalinherited
- disabledThumbColor → Color?
-
The color given to the thumbShape to draw itself with when the
Slider is disabled.
finalinherited
- disabledThumbTextStyle → TextStyle
-
disable时游标的样式
final
- divisions → int?
-
分割几块
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inactiveTickMarkColor → Color?
-
The color of the track's tick marks that are drawn between the current
thumb position and the Slider.max position.
finalinherited
- inactiveTrackColor → Color?
-
The color of the Slider track between the current thumb position and the
Slider.max position.
finalinherited
- max → double
-
最大值
final
- min → double
-
最小值
final
- minThumbSeparation → double?
-
Limits the thumb's separation distance.
finalinherited
-
mouseCursor
→ MaterialStateProperty<
MouseCursor?> ? -
The cursor for a mouse pointer when it enters or is hovering over the
widget.
finalinherited
- overlappingShapeStrokeColor → Color?
-
The color given to the perimeter of the top rangeThumbShape when the
thumbs are overlapping and the top rangeValueIndicatorShape when the
value indicators are overlapping.
finalinherited
- overlayColor → Color?
-
The color of the overlay drawn around the slider thumb when it is
pressed, focused, or hovered.
finalinherited
- overlayShape → SliderComponentShape?
-
The shape that will be used to draw the Slider's overlay.
finalinherited
- rangeThumbShape → RangeSliderThumbShape?
-
The shape that will be used for the RangeSlider's thumbs.
finalinherited
- rangeTickMarkShape → RangeSliderTickMarkShape?
-
The shape that will be used to draw the RangeSlider's tick marks.
finalinherited
- rangeTrackShape → RangeSliderTrackShape?
-
The shape that will be used to draw the RangeSlider's track.
finalinherited
- rangeValueIndicatorShape → RangeSliderValueIndicatorShape?
-
The shape that will be used for the RangeSlider's value indicators.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaleFormatter → ScaleFormatter?
-
刻度值的格式化
final
- scaleTextStyle → TextStyle?
-
刻度值的样式
final
- secondaryActiveTrackColor → Color?
-
The color of the Slider track between the current thumb position and the
Slider.secondaryTrackValue position.
finalinherited
- showScaleValue → bool
-
是否显示刻度值
final
- showThumbValue → bool
-
是否显示游标值
final
- showValueIndicator → ShowValueIndicator?
-
Whether the value indicator should be shown for different types of
sliders.
finalinherited
- sliderMeasureData → SliderMeasureData
-
运行时测量的数据,这里用于组件内部使用
final
- thumbColor → Color?
-
The color given to the thumbShape to draw itself with.
finalinherited
- thumbSelector → RangeThumbSelector?
-
Determines which thumb should be selected when the slider is interacted
with.
finalinherited
- thumbShape → SliderComponentShape?
-
The shape that will be used to draw the Slider's thumb.
finalinherited
- thumbTextStyle → TextStyle?
-
游标上文本样式
final
- tickMarkShape → SliderTickMarkShape?
-
The shape that will be used to draw the Slider's tick marks.
finalinherited
- trackHeight → double?
-
The height of the Slider track.
finalinherited
- trackShape → SliderTrackShape?
-
The shape that will be used to draw the Slider's track.
finalinherited
- valueIndicatorColor → Color?
-
The color given to the valueIndicatorShape to draw itself with.
finalinherited
- valueIndicatorShape → SliderComponentShape?
-
The shape that will be used to draw the Slider's value
indicator.
finalinherited
- valueIndicatorStrokeColor → Color?
-
The color given to the valueIndicatorShape stroke.
finalinherited
- valueIndicatorTextStyle → TextStyle?
-
The text style for the text on the value indicator.
finalinherited
Methods
-
copyWith(
{double? trackHeight, Color? activeTrackColor, Color? inactiveTrackColor, Color? secondaryActiveTrackColor, Color? disabledActiveTrackColor, Color? disabledInactiveTrackColor, Color? disabledSecondaryActiveTrackColor, Color? activeTickMarkColor, Color? inactiveTickMarkColor, Color? disabledActiveTickMarkColor, Color? disabledInactiveTickMarkColor, Color? thumbColor, Color? overlappingShapeStrokeColor, Color? disabledThumbColor, Color? overlayColor, Color? valueIndicatorColor, SliderComponentShape? overlayShape, SliderTickMarkShape? tickMarkShape, SliderComponentShape? thumbShape, SliderTrackShape? trackShape, SliderComponentShape? valueIndicatorShape, RangeSliderTickMarkShape? rangeTickMarkShape, RangeSliderThumbShape? rangeThumbShape, RangeSliderTrackShape? rangeTrackShape, RangeSliderValueIndicatorShape? rangeValueIndicatorShape, ShowValueIndicator? showValueIndicator, TextStyle? valueIndicatorTextStyle, double? minThumbSeparation, RangeThumbSelector? thumbSelector, MaterialStateProperty< MouseCursor?> ? mouseCursor, bool? showScaleValue, bool? showThumbValue, TextStyle? disabledScaleTextStyle, TextStyle? disabledThumbTextStyle, TextStyle? scaleTextStyle, TextStyle? thumbTextStyle, int? divisions, double? min, double? max, ScaleFormatter? scaleFormatter, SliderInteraction? allowedInteraction}) → TDSliderThemeData -
Creates a copy of this object but with the given fields replaced with the
new values.
override
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited