BasicSeekbar class abstract

要显示的刻度值 如果要自定义刻度值,数组中需要包含这个实体类 List

Inheritance
Implementers

Constructors

BasicSeekbar({Key? key, double? min, double? max, double? value, double? progresseight, int? sectionCount, Color? sectionColor, Color? sectionUnSelecteColor, double? sectionRadius, bool? showSectionText, List<SectionTextModel>? sectionTexts, double? sectionTextSize, bool? afterDragShowSectionText, Color? sectionTextColor, Color? sectionSelectTextColor, int? sectionDecimal, double? sectionTextMarginTop, Color? backgroundColor, Color? progressColor, String? semanticsLabel, String? semanticsValue, double? indicatorRadius, Color? indicatorColor, ValueChanged<ProgressValue>? onValueChanged, bool? isRound})
const

Properties

afterDragShowSectionText bool?
是否在拖拽结束显示值
final
backgroundColor Color?
进度条背景的颜色
final
hashCode int
The hash code for this object.
no setterinherited
indicatorColor Color?
指示器的颜色
final
indicatorRadius double?
指示器的半径
final
isRound bool?
进度条是否是圆角的,还是方形的,默认是圆角的
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
max double?
最大值
final
min double?
最小值
final
onValueChanged ValueChanged<ProgressValue>?
进度改变的回调
final
progressColor Color?
进度条当前进度的颜色
final
progresseight double?
高度
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sectionColor Color?
间隔圆圈的颜色
final
sectionCount int?
总共分几份
final
sectionDecimal int?
刻度值的小数点的位数,默认是0位
final
sectionRadius double?
间隔圆圈的半径
final
sectionSelectTextColor Color?
刻度值的字体颜色
final
sectionTextColor Color?
刻度值的字体颜色
final
sectionTextMarginTop double?
刻度值距离进度条的间距
final
sectionTexts List<SectionTextModel>?
刻度值的数组
final
sectionTextSize double?
刻度值的字体大小
final
sectionUnSelecteColor Color?
间隔圆圈未选中的颜色
final
semanticsLabel String?
这个是给盲人用的,屏幕阅读器的要读出来的标签
final
semanticsValue String?
这个是给盲人用的,屏幕阅读器的要读出的进度条的值
final
showSectionText bool?
显示间隔刻度值与否,默认是不显示
final
value double?
进度值
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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