feat: Update trip deletion logic to return to the previous screen after deletion
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user