NutsActivityIndicator class
A highly customizable activity indicator (spinner)
based on the iOS-style activity indicator from the
cupertino
package.
Key takeaways from Apple Human Interface Guidelines on Activity Indicators that are relevant to the NutsActivityIndicator class:
- use activity indicator only when activity cannot be quantified (for example remaining time, task count, data size).
- keep it moving: only disable animating if the process stalls.
For more information, see
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- NutsActivityIndicator
Constructors
- NutsActivityIndicator({Key? key, bool animating = true, double radius = 10, double startRatio = 0.5, double endRatio = 1.0, int tickCount = 12, Color activeColor = const Color(0xFF9D9D9D), Color inactiveColor = const Color(0xFFE5E5EA), Duration animationDuration = const Duration(seconds: 1), double relativeWidth = 1})
-
Creates a highly customizable activity indicator.
const
Properties
- activeColor → Color
-
The active color of the small rectangles within the activity indicator.
final
- animating → bool
-
Whether the activity indicator is running its animation.
final
- animationDuration → Duration
-
The time in which the activity indicator's animation finishes.
final
- endRatio → double
-
Radius ratio tells where the rectangles end.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inactiveColor → Color
-
The deactive color of the small rectangles within the activity indicator.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- radius → double
-
Radius of the activity indicator.
final
- relativeWidth → double
-
TODO: what is this width value really?
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startRatio → double
-
Radius ratio tells where the rectangles start.
final
- tickCount → int
-
The count of rectangles the activity indicator has.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _NutsActivityIndicatorState -
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