MotionLoader.saas constructor
MotionLoader.saas({
- Key? key,
- required MotionSaasStyle style,
- Color? color,
- double size = 50.0,
- bool glow = true,
SaaS Theme Category: pulse skeletons, syncing clouds & analytics.
Implementation
factory MotionLoader.saas({
Key? key,
required MotionSaasStyle style,
Color? color,
double size = 50.0,
bool glow = true,
}) {
return MotionLoader._internal(
key: key,
color: color,
size: size,
builder: (context) {
final activeColor = color ?? Theme.of(context).primaryColor;
switch (style) {
case MotionSaasStyle.pulseGrid:
return MotionSaasPulseGrid(
color: activeColor,
size: size,
);
case MotionSaasStyle.analytics:
return MotionSaasAnalyticsLoader(
color: activeColor,
size: size,
);
case MotionSaasStyle.cloudSync:
return MotionSaasCloudSync(
color: activeColor,
size: size,
glow: glow,
);
}
},
);
}