Skip to content

Commit

Permalink
chore: replace deprecated onPopInvoked with onPopInvokedWithResult (
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-tbd authored Oct 10, 2024
1 parent bc4c6dc commit b7fe3ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/features/payment/payment_details_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class PaymentDetailsPage extends HookConsumerWidget {

return PopScope(
canPop: !isAwaiting,
onPopInvoked: (_) {
onPopInvokedWithResult: (_, __) {
if (isAwaiting) {
ref.read(quoteProvider.notifier).stopPolling();
quote.value = null;
Expand Down
2 changes: 1 addition & 1 deletion lib/features/payment/payment_review_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class PaymentReviewPage extends HookConsumerWidget {

return PopScope(
canPop: false,
onPopInvoked: (didPop) async {
onPopInvokedWithResult: (didPop, _) async {
if (didPop) {
return;
}
Expand Down

0 comments on commit b7fe3ff

Please sign in to comment.