FlutstrapSpinner class

Flutstrap Spinner

A customizable loading spinner with Bootstrap-inspired styling.

Inheritance
Annotations

Constructors

FlutstrapSpinner({Key? key, FSSpinnerVariant variant = FSSpinnerVariant.primary, FSSpinnerSize size = FSSpinnerSize.md, FSSpinnerType type = FSSpinnerType.border, String? label, Widget? customLabel, Color? color, double? strokeWidth, Duration animationDuration = const Duration(milliseconds: 1000), bool centered = false, void onAnimationError(Object error)?, Widget? fallbackWidget})
const

Properties

animationDuration Duration
final
centered bool
final
color Color?
final
customLabel Widget?
final
fallbackWidget Widget?
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String?
final
onAnimationError → void Function(Object error)?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size FSSpinnerSize
final
strokeWidth double?
final
type FSSpinnerType
final
variant FSSpinnerVariant
final

Methods

asBorder() FlutstrapSpinner
Creates a border type spinner
asCentered() FlutstrapSpinner
Creates a centered spinner
asDots() FlutstrapSpinner
Creates a dots type spinner
asGrowing() FlutstrapSpinner
Creates a growing type spinner
copyWith({Key? key, FSSpinnerVariant? variant, FSSpinnerSize? size, FSSpinnerType? type, String? label, Widget? customLabel, Color? color, double? strokeWidth, Duration? animationDuration, bool? centered, void onAnimationError(Object error)?, Widget? fallbackWidget}) FlutstrapSpinner
Creates a copy of this spinner with the given properties replaced
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<FlutstrapSpinner>
Creates the mutable state for this widget at a given location in the tree.
override
danger() FlutstrapSpinner
Creates a danger variant spinner
dark() FlutstrapSpinner
Creates a dark variant spinner
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
info() FlutstrapSpinner
Creates an info variant spinner
large() FlutstrapSpinner
Creates a large size spinner
light() FlutstrapSpinner
Creates a light variant spinner
medium() FlutstrapSpinner
Creates a medium size spinner
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
primary() FlutstrapSpinner
Creates a primary variant spinner
secondary() FlutstrapSpinner
Creates a secondary variant spinner
small() FlutstrapSpinner
Creates a small size spinner
success() FlutstrapSpinner
Creates a success variant spinner
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
warning() FlutstrapSpinner
Creates a warning variant spinner
withColor(Color newColor) FlutstrapSpinner
Creates a spinner with custom color
withErrorHandler(void handler(Object error)) FlutstrapSpinner
Creates a spinner with error handling
withLabel(String newLabel) FlutstrapSpinner
Creates a spinner with a label

Operators

operator ==(Object other) bool
The equality operator.
inherited