feat: Update trip deletion logic to return to the previous screen after deletion
This commit is contained in:
1 parent
068924a0f2
commit
3d902ffa74
1 file changed
+1
@@ -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