EProgress class

Inheritance

Constructors

EProgress({Key? key, int progress = 0, ProgressType type = ProgressType.line, double strokeWidth = 6.0, bool textInside = false, List<Color>? colors, Color? backgroundColor, EleThemeStatus? status, bool showText = true, StrokeCap strokeCap = StrokeCap.round, Axis direction = Axis.horizontal, Color? borderColor, double borderWidth = 3.0, double radius = 0, String? format(int percentage)?, TextStyle? textStyle})
const

Properties

backgroundColor Color?
进度条背景颜色
final
borderColor Color?
border color type=和liquid
final
borderWidth double
border width type=和liquid
final
colors List<Color>?
进度条激活颜色,多个代表渐变色
final
direction Axis
direction 用于type=line 和liquid
final
format → (String? Function(int percentage)?)
指定进度条文字内容
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
progress int
百分比 范围0-100
final
radius double
radius type=和liquid
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showText bool
是否显示进度条文字内容,true
final
status → EleThemeStatus?
进度条当前状态
final
strokeCap StrokeCap
circle/dashboard 类型路径两端的形状,默认round
final
strokeWidth double
进度条的宽度,默认6
final
textInside bool
进度条显示文字内置在进度条内(只在 type=line 时可用),默认false
final
textStyle TextStyle?
textStyle
final
type ProgressType
进度条类型,默认line
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's 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.
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