LinearPercentIndicator class

Inheritance

Constructors

LinearPercentIndicator({Key? key, PercentModel percentModel = PercentModel.normal, AnimationSet animationSet = AnimationSet.normal, bool isRTL = false, double? width, double lineHeight = 5.0, ColorGradientModel backgroundGradient = ColorGradientModel.backModel, ColorGradientModel progressGradient = ColorGradientModel.progressModel, CenterSet centerSet = CenterSet.normal, StrokeCap strokeCap = StrokeCap.butt, MaskFilter? maskFilter, bool clipLinearGradient = false, bool addAutomaticKeepAlive = true})

Properties

addAutomaticKeepAlive bool
保存状态,避免重复绘制,默认true
final
animationSet AnimationSet
动画设置
final
backgroundGradient ColorGradientModel
背景色值设置
final
centerSet CenterSet
线条上的widget,居中显示
final
clipLinearGradient bool
progressGradient.linearGradient 设置的时候进度颜色渐变范围,默认false:progress的长度内渐变,true:整个进度条背景长度的范围内,
final
hashCode int
The hash code for this object.
no setterinherited
isRTL bool
是否要求动画从右向左,默认false,从左向右绘制
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lineHeight double
线条高度
final
maskFilter MaskFilter?
Creates a mask filter that takes the progress shape being drawn and blurs it.
final
percentModel PercentModel
通用基础设置
final
progressGradient ColorGradientModel
进度色值设置
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeCap StrokeCap
完成放置在线的末端绘制类型。这里不存在方形收尾,StrokeCap.square处理为背景线条和进度线条弧形收尾
final
width double?
线条宽度,可以不指定,区域内填满
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _LinearPercentIndicatorState
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