circular_loading.dart 752 B

1234567891011121314151617181920212223242526272829303132333435
  1. import 'package:flutter/material.dart';
  2. class Circularloading extends StatelessWidget {
  3. final double? value;
  4. final double? width;
  5. final double? height;
  6. final Color? color;
  7. final Color? backgroundColor;
  8. final Animation<Color>? valueColor;
  9. const Circularloading(
  10. {super.key,
  11. this.value,
  12. this.width,
  13. this.height,
  14. this.color,
  15. this.backgroundColor,
  16. this.valueColor});
  17. @override
  18. Widget build(BuildContext context) {
  19. return Container(
  20. alignment: Alignment.center,
  21. width: width,
  22. height: height,
  23. child: CircularProgressIndicator(
  24. value: value,
  25. color: color,
  26. backgroundColor: backgroundColor,
  27. valueColor: valueColor,
  28. ),
  29. );
  30. }
  31. }