LoadingWidget constructor

const LoadingWidget({
  1. Key? key,
  2. List<String> texts = const ['Loading...'],
  3. Duration interval = const Duration(seconds: 2),
  4. TextStyle? textStyle,
  5. Color? shimmerBaseColor,
  6. Color? shimmerHighlightColor,
  7. EdgeInsetsGeometry? margin,
  8. EdgeInsetsGeometry? padding,
  9. BoxDecoration? containerDecoration,
  10. Color? backgroundColor,
  11. BorderRadius? borderRadius,
  12. BoxBorder? border,
  13. List<BoxShadow>? boxShadow,
  14. double? elevation,
  15. List<Color>? gradientColors,
  16. List<double>? gradientStops,
  17. GradientType gradientType = GradientType.linear,
  18. double gradientAngle = 0,
  19. bool isGlassmorphic = false,
  20. double blurStrength = 10,
  21. double glassmorphicOpacity = 0.1,
  22. Alignment? alignment,
  23. double? width,
  24. double? minWidth,
  25. double? maxWidth,
  26. double? height,
  27. double? minHeight,
  28. double? maxHeight,
})

Creates a loading widget with extensive customization options.

Implementation

const LoadingWidget({
  super.key,
  this.texts = const ['Loading...'],
  this.interval = const Duration(seconds: 2),
  this.textStyle,
  this.shimmerBaseColor,
  this.shimmerHighlightColor,
  this.margin,
  this.padding,
  this.containerDecoration,
  this.backgroundColor,
  this.borderRadius,
  this.border,
  this.boxShadow,
  this.elevation,
  this.gradientColors,
  this.gradientStops,
  this.gradientType = GradientType.linear,
  this.gradientAngle = 0,
  this.isGlassmorphic = false,
  this.blurStrength = 10,
  this.glassmorphicOpacity = 0.1,
  this.alignment,
  this.width,
  this.minWidth,
  this.maxWidth,
  this.height,
  this.minHeight,
  this.maxHeight,
});