LoadingWidget constructor
const
LoadingWidget({
- Key? key,
- List<
String> texts = const ['Loading...'], - Duration interval = const Duration(seconds: 2),
- TextStyle? textStyle,
- Color? shimmerBaseColor,
- Color? shimmerHighlightColor,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- BoxDecoration? containerDecoration,
- Color? backgroundColor,
- BorderRadius? borderRadius,
- BoxBorder? border,
- List<
BoxShadow> ? boxShadow, - double? elevation,
- List<
Color> ? gradientColors, - List<
double> ? gradientStops, - GradientType gradientType = GradientType.linear,
- double gradientAngle = 0,
- bool isGlassmorphic = false,
- double blurStrength = 10,
- double glassmorphicOpacity = 0.1,
- Alignment? alignment,
- double? width,
- double? minWidth,
- double? maxWidth,
- double? height,
- double? minHeight,
- 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,
});