From ad5a7c171a5faa4e80dcaddeb38f4f3e581ecb68 Mon Sep 17 00:00:00 2001 From: Aayushmaan Date: Wed, 3 Jan 2024 20:32:15 +0530 Subject: [PATCH] chore: changes Navigator.pop(ctx) to ctx.router.pop() --- lib/presentation/profile/profile_view.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'), ) ],