feat: Update trip deletion logic to return to the previous screen after deletion

This commit is contained in:
Dayron
2025-10-20 16:39:38 +02:00
parent 068924a0f2
commit 3d902ffa74

View File

@@ -144,6 +144,7 @@ class _ShowTripDetailsContentState extends State<ShowTripDetailsContent> {
context.read<TripBloc>().add(TripDeleteRequested(tripId: widget.trip.id!));
context.read<GroupBloc>().add(DeleteGroup(widget.trip.id!));
Navigator.pop(context); // Fermer le dialogue
Navigator.pop(context, true); // Retourner à l'écran précédent
},
child: Text(
'Supprimer',