LinearProgress class
线性进度条
- Inheritance
-
- Object
- ButtonProgress
- LinearProgress
Constructors
-
LinearProgress({bool isTextInner = true, bool isTextFollowed = true, double height = 10, double? width, BorderRadius? borderRadius, double padding = 5, 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
- indicatorRatio → double?
-
final
- isBoxProgress → bool
-
是否为圆形或矩形进度
no setterinherited
- isIndeterminate → bool
-
是否是无进度类型
no setterinherited
- isProgressOpacityAnim → bool
-
finalinherited
- isTextFollowed → bool
-
final
- isTextInner → bool
-
final
- padding → double
-
final
- prefix → String?
-
finalinherited
- prefixStyle → TextStyle?
-
finalinherited
- progress → double
-
finalinherited
- progressReserve → int
-
finalinherited
- progressType → ProgressType
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadows
→ List<
BoxShadow> ? -
finalinherited
- 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? isTextInner, bool? isTextFollowed, bool? isProgressOpacityAnim, TextStyle? textStyle, String? prefix, TextStyle? prefixStyle, String? suffix, TextStyle? suffixStyle, double? height, BorderRadius? borderRadius, double? width, double? padding, double? indicatorRatio, BorderSide? borderSide, Gradient? foregroundGradient, Gradient? backgroundGradient, List< BoxShadow> ? shadows}) → LinearProgress -
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