SeekBar class
- Inheritance
- Annotations
Constructors
-
SeekBar.new({required Key key, required ValueChanged<
ProgressValue> onValueChanged, double min = 0.0, double max = 100.0, required double progresseight, double value = 0.0, required Color backgroundColor, required Color progressColor, required String semanticsLabel, required String semanticsValue, required double indicatorRadius, required Color indicatorColor, required int sectionCount, required Color sectionColor, required Color sectionUnSelecteColor, required double sectionRadius, required bool showSectionText, required List<SectionTextModel> sectionTexts, double sectionTextSize = 14.0, required bool afterDragShowSectionText, required Color sectionTextColor, required Color sectionSelectTextColor, int sectionDecimal = 0, double sectionTextMarginTop = 4.0, bool isRound = true, required bool hideBubble, required double bubbleRadius, required double bubbleHeight, required Color bubbleColor, Color bubbleTextColor = Colors.white, double bubbleTextSize = 14.0, double bubbleMargin = 4.0, bool bubbleInCenter = false, required bool alwaysShowBubble, bool isCanTouch = true})
Properties
- afterDragShowSectionText → bool
-
是否在拖拽结束显示值
finalinherited
- alwaysShowBubble ↔ bool
-
是否是一直显示气泡,默认是false,
getter/setter pair
- backgroundColor → Color
-
进度条背景的颜色
finalinherited
- bubbleColor ↔ Color
-
气泡背景颜色
getter/setter pair
- bubbleHeight ↔ double
-
气泡总高度,包含气泡半径
getter/setter pair
- bubbleInCenter ↔ bool
-
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
-
指示器的颜色
finalinherited
- indicatorRadius → double
-
指示器的半径
finalinherited
- isCanTouch ↔ bool
-
是否可以触摸响应触摸事件
getter/setter pair
- isRound → bool
-
进度条是否是圆角的,还是方形的,默认是圆角的
finalinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- max → double
-
最大值
finalinherited
- min → double
-
最小值
finalinherited
-
onValueChanged
→ ValueChanged<
ProgressValue> -
进度改变的回调
finalinherited
- progressColor → Color
-
进度条当前进度的颜色
finalinherited
- progresseight → double
-
高度
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sectionColor → Color
-
间隔圆圈的颜色
finalinherited
- sectionCount → int
-
总共分几份
finalinherited
- sectionDecimal → int
-
刻度值的小数点的位数,默认是0位
finalinherited
- sectionRadius → double
-
间隔圆圈的半径
finalinherited
- sectionSelectTextColor → Color
-
刻度值的字体颜色
finalinherited
- sectionTextColor → Color
-
刻度值的字体颜色
finalinherited
- sectionTextMarginTop → double
-
刻度值距离进度条的间距
finalinherited
-
sectionTexts
→ List<
SectionTextModel> -
刻度值的数组
finalinherited
- sectionTextSize → double
-
刻度值的字体大小
finalinherited
- sectionUnSelecteColor → Color
-
间隔圆圈未选中的颜色
finalinherited
- semanticsLabel → String
-
这个是给盲人用的,屏幕阅读器的要读出来的标签
finalinherited
- semanticsValue → String
-
这个是给盲人用的,屏幕阅读器的要读出的进度条的值
finalinherited
- showSectionText → bool
-
显示间隔刻度值与否,默认是不显示
finalinherited
- value → double
-
进度值
finalinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _SeekBarState -
Creates the mutable state for this widget at a given location in the tree.
override
-
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.
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
-
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