SLoadingIndicator class

Displays a centered, compact container with a loading spinner and an optional message. Suitable for overlaying on existing content without covering the entire screen.

Inheritance

Constructors

SLoadingIndicator({Key? key, String message = 'Loading ...', Color? spinnerColor, double spinnerSize = 25.0, Color? messageColor, SLoaderType? loaderType = SLoaderType.fadingCircle, bool showBackground = true, double backgroundOpacity = 0.5, Color? backgroundColor, TextStyle? messageStyle, bool barrierDismissible = false, String? semanticLabel, BorderRadiusGeometry? borderRadius, Duration animationDuration = const Duration(milliseconds: 300), Curve animationCurve = Curves.easeInOut, double spinnerSpeed = 1.0, Widget? customIcon, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin})
const

Properties

animationCurve Curve
Animation curve for the fade transition.
final
animationDuration Duration
Duration for fade-in and fade-out animations.
final
backgroundColor Color?
The color of the background overlay.
final
backgroundOpacity double
The opacity of the background overlay.
final
barrierDismissible bool
Whether the dialog can be dismissed by tapping outside.
final
borderRadius BorderRadiusGeometry?
The border radius of the loading indicator container.
final
customIcon Widget?
Optional custom icon instead of a spinner.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loaderType SLoaderType?
The type of loading spinner to display.
final
margin EdgeInsetsGeometry?
Margin around the loading indicator container.
final
message String
The message to display below the loading spinner.
final
messageColor Color?
The color of the loading message text.
final
messageStyle TextStyle?
The text style of the loading message.
final
padding EdgeInsetsGeometry?
Padding inside the loading indicator container.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
The semantic label for accessibility.
final
showBackground bool
Whether to display a semi-transparent background overlay.
final
spinnerColor Color?
The color of the loading spinner.
final
spinnerSize double
The size of the loading spinner.
final
spinnerSpeed double
Speed multiplier for the spinner animation.
final

Methods

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