Files
flutter/lib/widgets/core/image.dart

22 lines
515 B
Dart

import 'package:flutter/material.dart';
class ImageFormatNotSupported extends StatelessWidget {
final String title;
const ImageFormatNotSupported(this.title, {super.key});
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Container(
color: theme.colorScheme.errorContainer,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
spacing: 8,
children: [const Icon(Icons.broken_image), Text(title)],
),
);
}
}