- À valider : ligne avec survol type AdminUserCard, icône Ouvrir centrée et plus grande (iconSize 34). - Wizard AM : titres Identité et coordonnées / Dossier professionnel / Présentation ; photo à gauche, grille droite [2,2,2,2] (NIR, naissance, agrément, capacité) ; AppUser champs naissance ; dates dd/MM/yyyy via formatIsoDateFr ; ValidationDetailSection titre optionnel. - Wizard famille : titre étape 4 « Présentation ». - Suppression des debugPrint liés médias / images / dossier (api_config, auth_network_image, dossier_unifie, user_service, validation_family). Made-with: Cursor
12 lines
364 B
Dart
12 lines
364 B
Dart
import 'package:intl/intl.dart';
|
||
|
||
/// Affiche une date ISO / parseable en `dd/MM/yyyy`, avec repli sur la chaîne ou [ifEmpty].
|
||
String formatIsoDateFr(String? s, {String ifEmpty = '–'}) {
|
||
if (s == null || s.trim().isEmpty) return ifEmpty;
|
||
try {
|
||
return DateFormat('dd/MM/yyyy').format(DateTime.parse(s.trim()));
|
||
} catch (_) {
|
||
return s.trim();
|
||
}
|
||
}
|