CycleProgressBar class

Inheritance
Available extensions

Constructors

CycleProgressBar({Key? key, double percent = 0.0, double lineWidth = 5.0, double startAngle = 0.0, required double radius, Color fillColor = Colors.transparent, Color backgroundColor = const Color(0xFFB8C7CB), Color? progressColor, double backgroundWidth = -1, LinearGradient? linearGradient, bool animation = false, int animationDuration = 500, Widget? header, Widget? footer, Widget? center, bool addAutomaticKeepAlive = true, CircularStrokeCap circularStrokeCap = CircularStrokeCap.butt, Color? arcBackgroundColor, ArcType? arcType, bool animateFromLastPercent = false, bool reverse = false, Curve curve = Curves.linear, MaskFilter? maskFilter, bool restartAnimation = false, VoidCallback? onAnimationEnd, Widget? widgetIndicator, bool rotateLinearGradient = false, Color? progressBorderColor})

Properties

addAutomaticKeepAlive bool
是否保持状态 / Keep alive 默认值: true / Default: true
final
animateFromLastPercent bool
是否从上次进度开始动画 / Animate from last percent 默认值: false / Default: false
final
animation bool
是否启用动画 / Enable animation 默认值: false / Default: false
final
animationDuration int
动画时长(毫秒) / Animation duration (milliseconds) 默认值: 500 / Default: 500
final
arcBackgroundColor Color?
弧形背景颜色 / Arc background color 使用 arcType 时必填 / Required when using arcType
final
arcType ArcType?
弧形类型 / Arc type 可选: half, full, fullReversed / Options: half, full, fullReversed
final
backgroundColor Color
背景颜色 / Background color 默认值: Color(0xFFB8C7CB) / Default: Color(0xFFB8C7CB)
final
backgroundWidth double
背景条宽度 / Background bar width -1 表示使用 lineWidth / -1 means use lineWidth 默认值: -1 / Default: -1
final
center Widget?
中心组件 / Center widget
final
circularStrokeCap CircularStrokeCap
端点样式 / Stroke cap style 默认值: CircularStrokeCap.butt / Default: CircularStrokeCap.butt
final
curve Curve
动画曲线 / Animation curve 默认值: Curves.linear / Default: Curves.linear
final
fillColor Color
填充颜色(外部容器) / Fill color (outer container) 默认值: Colors.transparent / Default: Colors.transparent
final
底部组件 / Footer widget
final
hashCode int
The hash code for this object.
no setterinherited
顶部组件 / Header widget
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
linearGradient LinearGradient?
线性渐变 / Linear gradient 注意: 不能与 progressColor 同时使用 / Note: Cannot use with progressColor
final
lineWidth double
进度条宽度 / Progress bar width 默认值: 5.0 / Default: 5.0
final
maskFilter MaskFilter?
遮罩滤镜 / Mask filter
final
onAnimationEnd VoidCallback?
动画结束回调 / Animation end callback
final
percent double
进度百分比 / Progress percentage 取值范围: 0.0 ~ 1.0 / Range: 0.0 ~ 1.0 默认值: 0.0 / Default: 0.0
final
progressBorderColor Color?
进度条边框颜色 / Progress border color 可选 / Optional
final
progressColor Color
进度条颜色 / Progress color 注意: 不能与 linearGradient 同时使用 / Note: Cannot use with linearGradient
no setter
radius double
圆形半径 / Circle radius 必填参数 / Required
final
restartAnimation bool
是否重复动画 / Restart animation 默认值: false / Default: false
final
reverse bool
是否反向 / Reverse direction 默认值: false / Default: false
final
rotateLinearGradient bool
是否旋转渐变 / Rotate linear gradient 默认值: false / Default: false
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startAngle double
起始角度 / Start angle 默认值: 0.0 / Default: 0.0
final
widgetIndicator Widget?
指示器组件 / Indicator widget
final

Methods

blurred({double blur = 5, Color blurColor = Colors.white, BorderRadius? borderRadius, double colorOpacity = 0.5, Widget? overlay, AlignmentGeometry alignment = Alignment.center}) Blur

Available on Widget, provided by the BlurExtension extension

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _CycleProgressBarState
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
frosted({double blur = 5, Color frostColor = Colors.white, AlignmentGeometry alignment = Alignment.center, double? height, double? width, double frostOpacity = 0.0, BorderRadius? borderRadius, EdgeInsetsGeometry padding = EdgeInsets.zero}) Blur

Available on Widget, provided by the FrostExtension extension

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