BasicSeekbar class abstract
要显示的刻度值 如果要自定义刻度值,数组中需要包含这个实体类 List
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BasicSeekbar
- Implementers
Constructors
-
BasicSeekbar.new({required Key key, required double min, required double max, required double value, required double progresseight, required int sectionCount, required Color sectionColor, required Color sectionUnSelecteColor, required double sectionRadius, required bool showSectionText, required List<
SectionTextModel> sectionTexts, required double sectionTextSize, required bool afterDragShowSectionText, required Color sectionTextColor, required Color sectionSelectTextColor, required int sectionDecimal, required double sectionTextMarginTop, required Color backgroundColor, required Color progressColor, required String semanticsLabel, required String semanticsValue, required double indicatorRadius, required Color indicatorColor, required ValueChanged<ProgressValue> onValueChanged, required 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, int wrapWidth = 65}) → 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