imageNotFoundFallback method
Implementation
Widget imageNotFoundFallback(BuildContext context) {
final theme = Theme.of(context);
const warningColor = Colors.orange; // fallback au cas où
return Container(
padding: const EdgeInsets.all(gap),
decoration: BoxDecoration(
border: Border.all(width: 1, color: warningColor),
borderRadius: BorderRadius.circular(radius),
color: warningColor.withValues(alpha: 0.1),
),
child: Row(
children: [
const Icon(Icons.warning_amber_rounded, color: warningColor),
const SizedBox(width: gap),
Expanded(
child: Text(
"L'image de couverture n'est pas disponible",
style: theme.textTheme.bodyMedium?.copyWith(color: warningColor),
),
),
],
),
);
}