FlLinearProgress class

Inheritance
Available extensions

Constructors

FlLinearProgress({Key? key, required Color? progressColor, double percent = 0.0, double height = 5.0, double width = double.infinity, Color? backgroundColor, bool animation = false, bool repeat = false, Duration duration = const Duration(seconds: 2), Curve curve = Curves.fastLinearToSlowEaseIn, bool isRTL = false, FlLinearProgressChildBuilder? builder, StrokeCap strokeCap = StrokeCap.butt, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MaskFilter? maskFilter, ValueChanged<double>? onChanged})
const
FlLinearProgress.gradient({Key? key, required LinearGradient? linearGradient, double percent = 0.0, double height = 5.0, double width = double.infinity, Color? backgroundColor, bool animation = false, bool repeat = false, Duration duration = const Duration(seconds: 2), Curve curve = Curves.fastLinearToSlowEaseIn, bool isRTL = false, FlLinearProgressChildBuilder? builder, StrokeCap strokeCap = StrokeCap.square, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MaskFilter? maskFilter, bool isClip = true, ValueChanged<double>? onChanged})
const

Properties

animation bool
true if you want the Line to have animation
final
backgroundColor Color?
First color applied to the complete line
final
builder FlLinearProgressChildBuilder?
widget inside the Line
final
curve Curve
set a linear curve animation type
final
duration Duration
duration of the animation in milliseconds, It only applies if animation attribute is true
final
hashCode int
The hash code for this object.
no setterinherited
height double
Height of the line
final
isClip bool
Set true if you want to display only part of linearGradient based on percent value (ie. create 'VU effect'). If no linearGradient is specified this option is ignored.
final
isRTL bool
set true if you want to animate the linear from the right to left (RTL)
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
linearGradient LinearGradient?
If present, this will make the progress bar colored by this gradient.
final
mainAxisAlignment MainAxisAlignment
mainAxisAlignment of the Row
final
maskFilter MaskFilter?
Creates a mask filter that takes the progress shape being drawn and blurs it.
final
onChanged ValueChanged<double>?
Called when the user is selecting a new value for the progress bar
final
percent double
Percent value between 0.0 and 1.0
final
progressColor Color?
progressColor
final
repeat bool
set true when you want to restart the animation, it restarts only when reaches 1.0 as a value defaults to false
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeCap StrokeCap
The kind of finish to place on the end of lines drawn, values supported: butt, round, roundAll
final
toExpansionTilesRotationIconBuilder ExpansionTilesRotationIconBuilder

Available on Widget, provided by the ExtensionExpansionTiles extension

no setter
toToggleRotateIconBuilder ToggleRotateIconBuilder

Available on Widget, provided by the ExtensionWidgetToggleRotate extension

no setter
width double
Percent value between 0.0 and 1.0
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
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
toDecoratorPendant<T>({DecoratorPendantPosition positioned = DecoratorPendantPosition.outer, bool maintainSize = false, bool? needFocus, bool? needEditing, DecoratorPendantValueCallback<T?>? needValue}) DecoratorPendant<T>

Available on Widget, provided by the ExtensionWidgetDecoratorBox extension

toDecoratorPendantBuilder<T>({DecoratorPendantPosition positioned = DecoratorPendantPosition.outer, bool maintainSize = false, bool? needFocus, bool? needEditing, DecoratorPendantValueCallback<T?>? needValue}) DecoratorPendant<T>

Available on Widget, provided by the ExtensionWidgetDecoratorBox extension

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