LoadingPercentage constructor

const LoadingPercentage({
  1. Key? key,
  2. required bool isLoading,
  3. required Widget child,
  4. Color backgroundColor = Colors.black54,
  5. Widget? overLoading,
  6. Duration timer = const Duration(seconds: 100),
  7. Color colorLoading = Colors.blue,
  8. Color colorBackgroudLoading = Colors.white,
  9. PaintingStyle paintingStyle = PaintingStyle.stroke,
  10. StrokeJoin strokeJoin = StrokeJoin.round,
  11. StrokeCap strokeCap = StrokeCap.round,
  12. double strokeWidth = 15.0,
  13. Color textColor = Colors.white,
  14. bool showProgress = true,
  15. Widget? bottomLoading,
  16. bool isLineLoading = true,
})

Implementation

const LoadingPercentage({
  Key? key,
  required this.isLoading,
  required this.child,
  this.backgroundColor = Colors.black54,
  this.overLoading,
  this.timer = const Duration(seconds: 100),
  this.colorLoading = Colors.blue,
  this.colorBackgroudLoading = Colors.white,
  this.paintingStyle = PaintingStyle.stroke,
  this.strokeJoin = StrokeJoin.round,
  this.strokeCap = StrokeCap.round,
  this.strokeWidth = 15.0,
  this.textColor = Colors.white,
  this.showProgress = true,
  this.bottomLoading,
  this.isLineLoading = true,
}) : super(key: key);