RectangleProgress class

矩形路径进度条

Inheritance

Constructors

RectangleProgress({double? width, double? height, Color? progressBackground, Gradient? progressBackgroundGradient, double size = 5, BorderRadius? 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})
const

Properties

background Color
finalinherited
backgroundGradient Gradient?
finalinherited
borderRadius BorderRadius?
final
borderSide BorderSide?
finalinherited
foreground Color
finalinherited
foregroundGradient Gradient?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
final
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
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, BorderRadius? borderRadius, bool? reverse, StrokeCap? strokeCap, double? width, double? height, Color? progressBackground, Gradient? progressBackgroundGradient, Gradient? foregroundGradient, Gradient? backgroundGradient, BorderSide? borderSide, List<BoxShadow>? shadows}) RectangleProgress
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