notImplementedFallback method
Implementation
Widget notImplementedFallback(String typeInCause) {
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.withAlpha(25),
),
child: Row(
children: [
const Icon(Icons.warning_amber_rounded, color: warningColor),
const SizedBox(width: gap),
Expanded(
child: Text(
"Le type $typeInCause n'est pas disponible",
style: theme.textTheme.bodyMedium?.copyWith(color: warningColor),
),
),
],
),
);
}