CustomLinearProgressIndicator class

Inheritance

Constructors

CustomLinearProgressIndicator.new({Key? key, required double value, int animationDuration = 500, double borderRadius = 0, Color borderColor = Colors.black, BorderStyle borderStyle = BorderStyle.solid, double borderWidth = 1, Color backgroundColor = Colors.grey, double linearProgressBarBorderRadius = 0, Color colorLinearProgress = Colors.blue, double minHeight = 20, ValueChanged<double>? onProgressChanged, TextStyle? percentTextStyle, bool showPercent = false, Curve progressAnimationCurve = Curves.easeInOut, AlignmentGeometry alignment = Alignment.center, double maxValue = 1.0, List<Color>? gradientColors})
const

Properties

alignment AlignmentGeometry
alignment: An AlignmentGeometry value specifying the alignment of the progress bar within its container.
final
animationDuration int
animationDuration: An integer controlling the duration of the progress animation in milliseconds.
final
backgroundColor Color
backgroundColor: A Color value representing the background color of the progress bar.
final
borderColor Color
borderColor: A Color value specifying the color of the progress bar's border.
final
borderRadius double
/// borderRadius: A double value controlling the overall border radius of the progress bar.
final
borderStyle BorderStyle
borderStyle: A BorderStyle value defining the style of the border (e.g., solid, dashed).
final
borderWidth double
borderWidth: A double value setting the width of the border.
final
colorLinearProgress Color
colorLinearProgress: A Color value indicating the color of the filled progress portion.
final
gradientColors List<Color>?
gradientColors: A List
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
linearProgressBarBorderRadius double
linearProgressBarBorderRadius: A double value specifically adjusting the border radius of the linear progress bar element within the overall progress bar.
final
maxValue double
maxValue: A double value representing the maximum value for the progress bar.
final
minHeight double
minHeight: A double value setting the minimum height of the progress bar.
final
onProgressChanged ValueChanged<double>?
onProgressChanged: A callback function that is triggered when the progress value changes.
final
percentTextStyle TextStyle?
percentTextStyle: A TextStyle value specifying the text style for the percentage text.
final
progressAnimationCurve Curve
progressAnimationCurve: A Curve value specifying the curve for the progress animation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showPercent bool
showPercent: A bool value indicating whether to show the percentage text or not.
final
value double
value: A double value representing the current progress percentage (0.0 to 1.0).
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<CustomLinearProgressIndicator>
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
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