Ajoute l'espace parent : PIN, grille de règles, historique et annulation.

Phase 2 du MVP Flutter : vérification PIN locale, application des règles par famille, suivi des mouvements et correction avec plancher à 0.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Julien Martin
2026-06-12 12:24:42 +02:00
co-authored by Cursor
parent aac3a729a2
commit b8faf3b4df
12 changed files with 950 additions and 4 deletions
@@ -0,0 +1,30 @@
class MovementDetail {
const MovementDetail({
required this.id,
required this.childId,
required this.childName,
required this.delta,
required this.createdAt,
this.note,
this.ruleLabel,
this.ruleIcon,
this.rewardLabel,
this.rewardIcon,
});
final int id;
final int childId;
final String childName;
final int delta;
final DateTime createdAt;
final String? note;
final String? ruleLabel;
final String? ruleIcon;
final String? rewardLabel;
final String? rewardIcon;
String get label =>
rewardLabel ?? ruleLabel ?? note ?? 'Mouvement';
String get icon => rewardIcon ?? ruleIcon ?? '📋';
}