image_loading.dart 503 B

123456789101112131415161718192021222324
  1. import 'package:flutter/material.dart';
  2. class ImageLoading extends StatelessWidget{
  3. final double? value;
  4. const ImageLoading({
  5. super.key,
  6. this.value
  7. });
  8. @override
  9. Widget build(BuildContext context) {
  10. return Container(
  11. decoration: BoxDecoration(color: Colors.grey.withAlpha(20)),
  12. child:Center(
  13. child: SizedBox(
  14. width: 48, height: 48,
  15. child: CircularProgressIndicator(
  16. value: value
  17. )),
  18. ) ,
  19. );
  20. }
  21. }