mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
22 lines
515 B
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)],
|
|
),
|
|
);
|
|
}
|
|
}
|