ULoadingSettings constructor
const
ULoadingSettings({
- WidgetBuilder? builder,
- String? source,
- String? package,
- UFileData? fileData,
- double imageWidth = 80,
- double imageHeight = 80,
- BoxFit imageFit = BoxFit.contain,
- Color? imageColor,
- double imageBorderRadius = 0,
- String? imagePlaceholder,
- Color overlayColor = Colors.black54,
- Duration animationDuration = const Duration(milliseconds: 300),
- Curve animationCurve = Curves.easeInOut,
- double blurAmount = 2,
- bool dismissible = false,
- bool useDefaultLoader = true,
- String? text,
- Color textColor = Colors.white,
- Color spinnerColor = Colors.white,
- double spinnerSize = 40,
- double spinnerStrokeWidth = 3,
- bool useProgressIndicator = false,
- double spacing = 16,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? backgroundColor,
- double borderRadius = 0,
- AlignmentGeometry alignment = Alignment.center,
- bool showPercent = true,
- String percentSuffix = "%",
- Color? percentTextColor,
- ULoadingPercentBuilder? percentBuilder,
- VoidCallback? onDismiss,
Implementation
const ULoadingSettings({
this.builder,
this.source,
this.package,
this.fileData,
this.imageWidth = 80,
this.imageHeight = 80,
this.imageFit = BoxFit.contain,
this.imageColor,
this.imageBorderRadius = 0,
this.imagePlaceholder,
this.overlayColor = Colors.black54,
this.animationDuration = const Duration(milliseconds: 300),
this.animationCurve = Curves.easeInOut,
this.blurAmount = 2,
this.dismissible = false,
this.useDefaultLoader = true,
this.text,
this.textColor = Colors.white,
this.spinnerColor = Colors.white,
this.spinnerSize = 40,
this.spinnerStrokeWidth = 3,
this.useProgressIndicator = false,
this.spacing = 16,
this.padding,
this.margin,
this.backgroundColor,
this.borderRadius = 0,
this.alignment = Alignment.center,
this.showPercent = true,
this.percentSuffix = "%",
this.percentTextColor,
this.percentBuilder,
this.onDismiss,
});