MotionLoader class

A centralized, production-grade loading dispatcher widget.

Automatically routes, compiles, and renders any of the 35+ premium loading presets available under standard named category constructors or the default MotionLoaderType enums. Respects global speed scales and reduced motion accessibility profiles automatically.

Inheritance
Available extensions

Constructors

MotionLoader({Key? key, MotionLoaderType? type = MotionLoaderType.ai, Color? color, double size = 50.0, double strokeWidth = 3.0})
Creates a unified default MotionLoader instance.
const
MotionLoader.ai({Key? key, required MotionAiStyle style, Color? color, double size = 50.0, bool glow = true, int particleCount = 8})
AI Theme Category: Contains 4 advanced futuristic AI styles.
factory
MotionLoader.artistic({Key? key, required MotionArtisticStyle style, Color? color, double size = 50.0})
Artistic Theme Category: calligraphy brush strokes, origami panels.
factory
MotionLoader.audio({Key? key, required MotionAudioStyle style, Color? color, double size = 50.0})
Audio Theme Category: equalizer sound bars, spinning records & frequency curves.
factory
MotionLoader.cyberpunk({Key? key, required MotionCyberpunkStyle style, Color? color, double size = 50.0})
Cyberpunk Theme Category: console terminals, glitches, and scanners.
factory
MotionLoader.experimental({Key? key, required MotionExperimentalStyle style, Color? color, double size = 50.0})
Experimental Theme Category: temporal warps, portals, dimensional rifts.
factory
MotionLoader.fromJson(Map<String, dynamic> json)
Configuration-based factory builder from a JSON map.
factory
MotionLoader.gaming({Key? key, required MotionGamingStyle style, Color? color, double size = 50.0, bool glow = true})
Gaming Theme Category: RPG runic fires, pixel scanlines, XP arcs.
factory
MotionLoader.geometry({Key? key, required MotionGeometryStyle style, Color? color, double size = 50.0})
Geometry Theme Category: impossible cubes, honeycomb swarms, scaling branch fractals.
factory
MotionLoader.glass({Key? key, required MotionGlassStyle style, Color? color, double size = 50.0, bool glow = true})
Glassmorphism Theme Category: Translucent frosted elements & meshes.
factory
MotionLoader.liquid({Key? key, required MotionLiquidStyle style, Color? color, double size = 50.0})
Liquid Theme Category: Contains 3 advanced fluid dynamics simulation styles.
factory
MotionLoader.luxury({Key? key, required MotionLuxuryStyle style, Color? color, double size = 50.0})
Luxury Theme Category: diamond sparks, silk curves, watch gear mechanical ticks.
factory
MotionLoader.minimal({Key? key, required MotionMinimalStyle style, Color? color, double size = 50.0, double strokeWidth = 3.0})
Minimal Theme Category: Lemniscate drawing paths, vectors & morphing layers.
factory
MotionLoader.nature({Key? key, required MotionNatureStyle style, Color? color, double size = 50.0})
Nature Theme Category: fireflies, tornadoes, volcanoes, sways & eclipses.
factory
MotionLoader.physics({Key? key, required MotionPhysicsStyle style, Color? color, double size = 50.0, bool glow = true})
Physics Theme Category: Collision dynamics and orbital attractions.
factory
MotionLoader.saas({Key? key, required MotionSaasStyle style, Color? color, double size = 50.0, bool glow = true})
SaaS Theme Category: pulse skeletons, syncing clouds & analytics.
factory
MotionLoader.social({Key? key, required MotionSocialStyle style, Color? color, double size = 50.0, bool glow = true})
Social Theme Category: Reels upload circles, streaming pulses & story sweeps.
factory
MotionLoader.space({Key? key, required MotionSpaceStyle style, Color? color, double size = 50.0, bool glow = true})
Space/Sci-Fi Theme Category: Gravity vortexes and speedways.
factory
MotionLoader.threeD({Key? key, required MotionThreeDStyle style, Color? color, double size = 50.0})
3D Theme Category: floating parallax cubes, stacked isometrics, holographic wireframe spheres.
factory

Properties

color Color?
The active primary color of the loading graphics.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
The bounding box dimensions (width and height constraints) of the loader.
final
strokeWidth double
The stroke dimensions for line and outline-based graphic painters.
final
type MotionLoaderType?
The specific MotionLoaderType layout preset profile to render.
final

Methods

animateFade({Key? key, double opacity = 1.0, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeOut}) Widget

Available on Widget, provided by the MotionWidgetExtensions extension

Wraps a widget in an easy implicit animated opacity/fade effect
animateRotation({Key? key, double turns = 0.0, Duration duration = const Duration(milliseconds: 400), Curve curve = MotionCurves.swiftOut}) Widget

Available on Widget, provided by the MotionWidgetExtensions extension

Wraps a widget in a rotation effect
animateScale({Key? key, double scale = 1.0, Duration duration = const Duration(milliseconds: 300), Curve curve = MotionCurves.swiftOut}) Widget

Available on Widget, provided by the MotionWidgetExtensions extension

Wraps a widget in an easy implicit animated scale effect
animateSlide({Key? key, Offset offset = Offset.zero, Duration duration = const Duration(milliseconds: 350), Curve curve = MotionCurves.swiftOut}) Widget

Available on Widget, provided by the MotionWidgetExtensions extension

Wraps a widget in a slide-offset animated wrapper
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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

Static Methods

generator({required String category, required String style, Color? color, double size = 50.0, bool glow = true}) Widget
Dynamic runtime custom builder/generator factory.