SeekBar class
- Inheritance
Constructors
-
SeekBar({Key? key, ValueChanged<
ProgressValue> ? onValueChanged, double min = 0.0, double max = 100.0, double? progressHeight, double value = 0.0, Color? backgroundColor, Color? progressColor, String? semanticsLabel, String? semanticsValue, double? indicatorRadius, Color? indicatorColor, int? sectionCount, Color? sectionColor, Color? sectionUnSelectColor, double? sectionRadius, bool? showSectionText, List<SectionTextModel> ? sectionTexts, double sectionTextSize = 14.0, bool? afterDragShowSectionText, Color? sectionTextColor, Color? sectionSelectTextColor, int sectionDecimal = 0, double sectionTextMarginTop = 4.0, bool isRound = true, bool? hideBubble, double? bubbleRadius, double? bubbleHeight, Color? bubbleColor, Color bubbleTextColor = Colors.white, double bubbleTextSize = 14.0, double bubbleMargin = 4.0, bool bubbleInCenter = false, bool? alwaysShowBubble, bool isCanTouch = true}) -
const
Properties
- afterDragShowSectionText → bool?
-
是否在拖拽结束显示值
finalinherited
- alwaysShowBubble → bool?
-
是否是一直显示气泡,默认是false,
final
- backgroundColor → Color?
-
进度条背景的颜色
finalinherited
- bubbleColor → Color?
-
气泡背景颜色
final
- bubbleHeight → double?
-
气泡总高度,包含气泡半径
final
- bubbleInCenter → bool
-
final
- bubbleMargin → double
-
气泡距离底部的高度
final
- bubbleRadius → double
-
气泡半径
final
- bubbleTextColor → Color
-
气泡中文字的颜色
final
- bubbleTextSize → double
-
气泡中文字的大小
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideBubble → bool
-
显示气泡 ,默认是隐藏的,true
final
- indicatorColor → Color?
-
指示器的颜色
finalinherited
- indicatorRadius → double?
-
指示器的半径
finalinherited
- isCanTouch → bool
-
是否可以触摸响应触摸事件
final
- 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
- progressHeight → 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
- sectionUnSelectColor → 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}) → 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