Intégration fonctionnalites V1

This commit is contained in:
bastien
2026-07-04 22:46:14 +02:00
parent bf191d6396
commit 9f352b91d2
25 changed files with 779 additions and 184 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
import '../../../core/time/server_time.dart';
/// Progression d'un lavage en cours.
class WashProgress {
const WashProgress({
@@ -50,7 +52,7 @@ class WashProgress {
return const WashProgress(percent: 0, phaseLabel: 'En attente de démarrage', phase: 'pending');
}
final now = DateTime.now();
final now = ServerTime.now();
final end = estimatedEndAt ??
(startedAt != null && durationMinutes != null
? startedAt.add(Duration(minutes: durationMinutes))