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

Null check operator used on a null value #121

Open
Aljnk opened this issue Jan 14, 2023 · 4 comments
Open

Null check operator used on a null value #121

Aljnk opened this issue Jan 14, 2023 · 4 comments

Comments

@Aljnk
Copy link

Aljnk commented Jan 14, 2023

awesome_dialog 3.0.2
This problem appears only main page:

1

2

@Aljnk
Copy link
Author

Aljnk commented Jan 14, 2023

This hook give the same result:
3
4

@Aljnk
Copy link
Author

Aljnk commented Jan 14, 2023

Sorry, I found error - two times call
Navigator.pop(context);

@DigitalSolomon
Copy link

Error in the package or in your app code? I'm running into this error as well.

@Domenic-MZS
Copy link

Domenic-MZS commented Aug 7, 2023

Yes, it's an error on the unmounted dialog context...
I fixed it by manually dismissing the dialog, keeping the navigator instance cached before the dialog being showed like:

final router = Navigator.of(context, rootNavigator: useRootNavigator);

AwesomeDialog(...).show();

then you can use the cached router to call pop() on the dismissCallback or something...

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

3 participants