image_error.dart 427 B

1234567891011121314151617181920212223
  1. import 'package:flutter/material.dart';
  2. class ImageError extends StatelessWidget {
  3. final IconData? icon;
  4. final double? size;
  5. final Color? color;
  6. const ImageError(
  7. {super.key,
  8. this.icon = Icons.broken_image_outlined,
  9. this.size = 100,
  10. this.color = Colors.grey});
  11. @override
  12. Widget build(BuildContext context) {
  13. return Icon(
  14. icon,
  15. size: size,
  16. color: color,
  17. );
  18. }
  19. }