ProgressValueButton class
Creates a progress button with the supplied value in percentage.
The value and onPressed parameters should not be null.
Example:
ProgressValueButton(
value: 90.0,
height: 65.0,
onPressed: (progress) {},
margin: const EdgeInsets.all(10.0),
child: Text(
"Uploading...",
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.white,
fontSize: 18.0,
),
),
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ProgressValueButton
Constructors
- ProgressValueButton({Key? key, required double value, required dynamic onPressed(double), Color backgroundColor = const Color(0xffd6d6d6), Color progressColor = Colors.green, Widget? child, double? width, double? height, EdgeInsetsGeometry? margin, dynamic onValueChange(double)?, double? borderRadius = 4.0, bool? active = true, Duration? animationDuration = const Duration(milliseconds: 2000), Curve animationCurve = Curves.easeOutSine})
-
const
Properties
- active → bool?
-
The active state of the button.
final
- animationCurve → Curve
-
The curve of the progress animation.
final
- animationDuration → Duration?
-
The animation duration of the progress animation.
final
- backgroundColor → Color
-
The background color of the progress button.
final
- borderRadius → double?
-
The border radius of the button.
final
- child → Widget?
-
The widget that is displayed in the center of the progress button.
It is usually a text widget.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The height of the progress button.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → EdgeInsetsGeometry?
-
The margin around the progress button.
final
- onPressed → dynamic Function(double)
-
The function that will be called when user taps on the button.
final
- onValueChange → (dynamic Function(double)?)
-
The function that will be called everytime the progress of the button changes.
final
- progressColor → Color
-
The color of the progress indicator.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → double
-
The percentage value of the progress indicator.
final
- width → double?
-
The width of the progress button.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _ProgressValueButtonState -
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}) → 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