Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WillPopeScope is now deprecated. I tried using PopScope since your approach isn't working now. Below is the error I'm getting when I try navigating back to the tabs page after setting the meals filter. #18

Open
sistercharmings777 opened this issue May 2, 2024 · 0 comments

Comments

@sistercharmings777
Copy link

Restarted application in 670ms.
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: 'package:flutter/src/widgets/navigator.dart': Failed assertion: line 5238 pos 12: '!_debugLocked': is not true.
#0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61)
#1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:40:5)
#2 NavigatorState.pop (package:flutter/src/widgets/navigator.dart:5238:12)
#3 _FiltersScreenState.build. (package:meals/screens/filters.dart:43:35)
#4 ModalRoute.onPopInvoked (package:flutter/src/widgets/routes.dart:1574:30)
#5 _RouteEntry.pop (package:flutter/src/widgets/navigator.dart:3083:11)
#6 NavigatorState.pop (package:flutter/src/widgets/navigator.dart:5251:13)
#7 NavigatorState.maybePop (package:flutter/src/widgets/navigator.dart:5204:9)

@sistercharmings777 sistercharmings777 changed the title WillPopeScope is now deprecated. I tried using PopScope since your approach isn't working now. Below is the error I'm getting. WillPopeScope is now deprecated. I tried using PopScope since your approach isn't working now. Below is the error I'm getting when I try navigating back to the tabs page after setting the meals filter. May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant