DHSliderTrackShape class

@author Evan @since 2021/1/12 @describe: 自定义Track

Inheritance

Constructors

DHSliderTrackShape({Image? image, bool alignThumbCenter = true, List<String>? marks, TextStyle? activeMarkStyle, TextStyle? inactiveMarkStyle, TextStyle? disabledActiveMarkStyle, TextStyle? disabledInactiveMarkStyle})
const

Properties

activeMarkStyle TextStyle?
可用状态左侧mark样式
final
alignThumbCenter bool
track是否左对齐thumb中心 true track左对齐thumb中心 false track左对齐thumb左
final
disabledActiveMarkStyle TextStyle?
不可用状态左侧mark样式
final
disabledInactiveMarkStyle TextStyle?
不可用状态右侧mark样式
final
hashCode int
The hash code for this object.
no setterinherited
image Image?
track背景图片image
final
inactiveMarkStyle TextStyle?
可用状态右侧mark样式
final
marks List<String>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getPreferredRect({required RenderBox parentBox, Offset offset = Offset.zero, required SliderThemeData sliderTheme, bool isEnabled = false, bool isDiscrete = false}) Rect
Returns the preferred bounds of the shape.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(PaintingContext context, Offset offset, {required RenderBox parentBox, required SliderThemeData sliderTheme, required Animation<double> enableAnimation, required TextDirection textDirection, required Offset thumbCenter, bool isDiscrete = false, bool isEnabled = false}) → void
Paints the track shape based on the state passed to it.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited