Skip to content

Commit

Permalink
Migrate back to onPopInvoked
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz committed Aug 8, 2024
1 parent dc94f28 commit ca637e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/routes/home/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class HomeState extends State<Home> with AutoLockMixin, HandlerContextProvider {
),
child: PopScope(
canPop: false,
onPopInvokedWithResult: (bool didPop, Object? result) async {
onPopInvoked: (bool didPop) async {
if (didPop) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class EnterMnemonicsPageState extends State<EnterMnemonicsPage> {

return PopScope(
canPop: _currentPage == 1,
onPopInvokedWithResult: (bool didPop, Object? result) async {
onPopInvoked: (bool didPop) async {
if (_currentPage > 1) {
FocusScope.of(context).requestFocus(FocusNode());
setState(() {
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/payment_dialogs/payment_request_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class PaymentRequestDialogState extends State<PaymentRequestDialog> {
Widget build(BuildContext context) {
return PopScope(
canPop: false,
onPopInvokedWithResult: (bool didPop, Object? result) async {
onPopInvoked: (bool didPop) async {
if (_state == PaymentRequestState.processingPayment) {
return;
} else {
Expand Down

0 comments on commit ca637e1

Please sign in to comment.