SeekBarPainter class

Inheritance

Constructors

SeekBarPainter({Color? backgroundColor, Color? progressColor, double? value, double? min, double? max, double? indicatorRadius, Color? indicatorColor, double? radius, int? sectionCount, Color? sectionColor, Color? sectionUnSelectColor, double? sectionRadius, bool? showSectionText, List<SectionTextModel>? sectionTexts, double? sectionTextSize, bool? afterDragShowSectionText, Color? sectionTextColor, Color? sectionSelectTextColor, int? sectionDecimal, required double sectionTextMarginTop, double? progressHeight, bool? hideBubble, bool? alwaysShowBubble, double? bubbleRadius, double? bubbleHeight, Color? bubbleColor, Color? bubbleTextColor, double? bubbleTextSize, double? bubbleMargin, bool? bubbleInCenter})

Properties

afterDragShowSectionText bool?
final
alwaysShowBubble bool?
是否是一直显示气泡,默认是false,
getter/setter pair
backgroundColor Color?
背景颜色
final
bubbleColor Color?
气泡背景颜色
getter/setter pair
bubbleHeight double?
气泡的总高度
getter/setter pair
bubbleInCenter bool?
气泡在进度条的中间显示,而不是在进度条的上方展示,默认是false,在上方显示
getter/setter pair
bubbleMargin double?
气泡距离底部的高度
getter/setter pair
bubbleRadius double?
气泡的半径
getter/setter pair
bubbleTextColor Color?
气泡中文字的颜色
getter/setter pair
bubbleTextSize double?
气泡中文字的大小
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hideBubble bool?
气泡隐藏与否,默认是true,隐藏
getter/setter pair
indicatorColor Color?
指示器的颜色
getter/setter pair
indicatorRadius double?
指示器的半径,进度条右侧的原点
getter/setter pair
max double?
最小值
final
min double?
最大值
final
progressColor Color?
进度条的颜色
final
progressHeight double?
进度条的高度
getter/setter pair
radius double?
最外层的圆角
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sectionColor Color?
间隔圆圈的颜色
getter/setter pair
sectionCount int?
间隔数量
getter/setter pair
sectionDecimal int?
刻度值的小数点的位数,默认是0位
final
sectionRadius double?
间隔圆圈的半径
getter/setter pair
sectionSelectTextColor Color?
刻度值的字体颜色
final
sectionTextColor Color?
刻度值的字体颜色
final
sectionTextMarginTop double
刻度值距离进度条的间距
final
sectionTexts List<SectionTextModel>?
刻度值的数组
final
sectionTextSize double?
刻度值的字体大小
final
sectionUnSelectColor Color?
间隔圆圈未选中的颜色
final
semanticsBuilder SemanticsBuilderCallback?
Returns a function that builds semantic information for the picture drawn by this painter.
no setterinherited
showSectionText bool?
显示间隔刻度值与否,默认是不显示
final
value double?
进度值
final

Methods

addListener(VoidCallback listener) → void
Register a closure to be notified when it is time to repaint.
inherited
drawPath(double progressHeight, double x, double totalHeight, double? r) Path
hitTest(Offset position) bool?
Called whenever a hit test is being performed on an object that is using this custom paint delegate.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas, Size size) → void
Called whenever the object needs to paint. The given Canvas has its coordinate space configured such that the origin is at the top left of the box. The area of the box is the size of the size argument.
override
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies when it is time to repaint.
inherited
shouldRebuildSemantics(covariant CustomPainter oldDelegate) bool
Called whenever a new instance of the custom painter delegate class is provided to the RenderCustomPaint object, or any time that a new CustomPaint object is created with a new instance of the custom painter delegate class (which amounts to the same thing, because the latter is implemented in terms of the former).
inherited
shouldRepaint(covariant SeekBarPainter oldDelegate) bool
Called whenever a new instance of the custom painter delegate class is provided to the RenderCustomPaint object, or any time that a new CustomPaint object is created with a new instance of the custom painter delegate class (which amounts to the same thing, because the latter is implemented in terms of the former).
override
toString() String
A string representation of this object.
inherited

Operators

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