Skip to content

Commit

Permalink
chore: changes Navigator.pop(ctx) to ctx.router.pop()
Browse files Browse the repository at this point in the history
  • Loading branch information
am-casper committed Jan 3, 2024
1 parent 44955d3 commit ad5a7c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/presentation/profile/profile_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
)
],
Expand Down

0 comments on commit ad5a7c1

Please sign in to comment.