From 3d902ffa74ec6fde05c8748b837c5b015291f6b7 Mon Sep 17 00:00:00 2001 From: Dayron Date: Mon, 20 Oct 2025 16:39:38 +0200 Subject: [PATCH] feat: Update trip deletion logic to return to the previous screen after deletion --- lib/components/home/show_trip_details_content.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/components/home/show_trip_details_content.dart b/lib/components/home/show_trip_details_content.dart index af50da9..b730a9b 100644 --- a/lib/components/home/show_trip_details_content.dart +++ b/lib/components/home/show_trip_details_content.dart @@ -144,6 +144,7 @@ class _ShowTripDetailsContentState extends State { context.read().add(TripDeleteRequested(tripId: widget.trip.id!)); context.read().add(DeleteGroup(widget.trip.id!)); Navigator.pop(context); // Fermer le dialogue + Navigator.pop(context, true); // Retourner à l'écran précédent }, child: Text( 'Supprimer',