ULoadingSettings constructor

const ULoadingSettings({
  1. WidgetBuilder? builder,
  2. String? source,
  3. String? package,
  4. UFileData? fileData,
  5. double imageWidth = 80,
  6. double imageHeight = 80,
  7. BoxFit imageFit = BoxFit.contain,
  8. Color? imageColor,
  9. double imageBorderRadius = 0,
  10. String? imagePlaceholder,
  11. Color overlayColor = Colors.black54,
  12. Duration animationDuration = const Duration(milliseconds: 300),
  13. Curve animationCurve = Curves.easeInOut,
  14. double blurAmount = 2,
  15. bool dismissible = false,
  16. bool useDefaultLoader = true,
  17. String? text,
  18. Color textColor = Colors.white,
  19. Color spinnerColor = Colors.white,
  20. double spinnerSize = 40,
  21. double spinnerStrokeWidth = 3,
  22. bool useProgressIndicator = false,
  23. double spacing = 16,
  24. EdgeInsetsGeometry? padding,
  25. EdgeInsetsGeometry? margin,
  26. Color? backgroundColor,
  27. double borderRadius = 0,
  28. AlignmentGeometry alignment = Alignment.center,
  29. bool showPercent = true,
  30. String percentSuffix = "%",
  31. Color? percentTextColor,
  32. ULoadingPercentBuilder? percentBuilder,
  33. 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,
});