Intégration fonctionnalites V1
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -9,6 +9,7 @@ import 'package:intl/intl.dart';
|
||||
import '../../../core/api/api_response.dart';
|
||||
import '../../../core/router/app_router.dart';
|
||||
import '../../../core/theme/app_colors.dart';
|
||||
import '../../../core/time/server_time.dart';
|
||||
import '../../../core/widgets/empty_state.dart';
|
||||
import '../../../core/widgets/screen_header.dart';
|
||||
import '../data/wash_repository.dart';
|
||||
@@ -141,7 +142,7 @@ class _HistoryWashTile extends StatelessWidget {
|
||||
),
|
||||
title: Text(wash.machineName),
|
||||
subtitle: wash.startedAt != null
|
||||
? Text(DateFormat('dd/MM/yyyy · HH:mm').format(wash.startedAt!))
|
||||
? Text(ServerTime.format(wash.startedAt, pattern: 'dd/MM/yyyy · HH:mm'))
|
||||
: null,
|
||||
trailing: Text(
|
||||
format.format(wash.cost),
|
||||
|
||||
Reference in New Issue
Block a user