Skip to content

Commit ad5a7c1

Browse files
committed
chore: changes Navigator.pop(ctx) to ctx.router.pop()
1 parent 44955d3 commit ad5a7c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/presentation/profile/profile_view.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ class ProfileScreen extends StatelessWidget {
124124
ProfilePageBloc>()
125125
.add(
126126
const DeleteHostelChangeRequest());
127-
Navigator.pop(ctx);
127+
ctx.router.pop();
128128
},
129129
child: const Text('Delete'),
130130
),
131131
TextButton(
132132
onPressed: () =>
133-
Navigator.pop(ctx),
133+
ctx.router.pop(),
134134
child: const Text('Cancel'),
135135
)
136136
],

0 commit comments

Comments
 (0)