PolygonProgress class

正多边形环绕进度条

Inheritance

Constructors

PolygonProgress({double? width, int side = 3, Color? progressBackground, Gradient? progressBackgroundGradient, double size = 5, double? borderRadius, bool reverse = false, StrokeCap strokeCap = StrokeCap.round, String? indeterminateText, double? indicatorRatio, double progress = 0.0, int progressReserve = 1, ProgressType progressType = ProgressType.indeterminate, Color foreground = Colors.orange, Color background = Colors.blueAccent, bool isProgressOpacityAnim = true, TextStyle textStyle = const TextStyle(fontSize: 12, color: Colors.white), String? prefix, TextStyle? prefixStyle, String? suffix, TextStyle? suffixStyle, BorderSide? borderSide, Gradient? foregroundGradient, Gradient? backgroundGradient, List<BoxShadow>? shadows})

Properties

background Color
finalinherited
backgroundGradient Gradient?
finalinherited
borderRadius double?
final
borderSide BorderSide?
finalinherited
foreground Color
finalinherited
foregroundGradient Gradient?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
indeterminateText String?
final
indicatorRatio double?
final
isBoxProgress bool
是否为圆形或矩形进度
no setterinherited
isIndeterminate bool
是否是无进度类型
no setterinherited
isProgressOpacityAnim bool
finalinherited
prefix String?
finalinherited
prefixStyle TextStyle?
finalinherited
progress double
finalinherited
progressBackground Color?
final
progressBackgroundGradient Gradient?
final
progressReserve int
finalinherited
progressType ProgressType
finalinherited
reverse bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadows List<BoxShadow>?
finalinherited
side int
final
size double
final
strokeCap StrokeCap
final
suffix String?
finalinherited
suffixStyle TextStyle?
finalinherited
textStyle TextStyle
finalinherited
width double?
final

Methods

copyWith({double? progress, int? progressReserve, ProgressType? progressType, Color? foreground, Color? background, bool? isProgressOpacityAnim, String? indeterminateText, double? indicatorRatio, TextStyle? textStyle, String? prefix, TextStyle? prefixStyle, String? suffix, TextStyle? suffixStyle, double? size, double? startRatio, double? borderRadius, bool? reverse, StrokeCap? strokeCap, double? width, Color? progressBackground, Gradient? progressBackgroundGradient, Gradient? foregroundGradient, Gradient? backgroundGradient, BorderSide? borderSide, List<BoxShadow>? shadows}) PolygonProgress
needChangeAnimation(ButtonProgress newProgress) bool
是否需要改变动画参数
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited