diff --git a/lib/presentation/profile/profile_view.dart b/lib/presentation/profile/profile_view.dart index 7e461d13..ecc3ee84 100644 --- a/lib/presentation/profile/profile_view.dart +++ b/lib/presentation/profile/profile_view.dart @@ -124,13 +124,13 @@ class ProfileScreen extends StatelessWidget { ProfilePageBloc>() .add( const DeleteHostelChangeRequest()); - Navigator.pop(ctx); + ctx.router.pop(); }, child: const Text('Delete'), ), TextButton( onPressed: () => - Navigator.pop(ctx), + ctx.router.pop(), child: const Text('Cancel'), ) ],