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

OverlayEntry crashes the app when changing page #97

Closed
jonas-martinez opened this issue May 6, 2022 · 0 comments · Fixed by #98
Closed

OverlayEntry crashes the app when changing page #97

jonas-martinez opened this issue May 6, 2022 · 0 comments · Fixed by #98
Assignees
Labels
bug Something isn't working

Comments

@jonas-martinez
Copy link
Contributor

jonas-martinez commented May 6, 2022

How to make the overlayEntry crash the app ?

  1. Create a page with an overlayEntry
  2. open the overlayEntry by clicking on a button
  3. close the overlayEntry by clicking on a button inside the overlay
  4. Change page

The application should crash with error :

LateInitializationError: Field 'overlayEntry' has not been initialized.

This error might be coming from the fact that we removed the overlay at step 3 and when doing step 4, the deactivate method might be called on the overlay which is trying to access overlayEntry.mounted but the overlayEntry variable is not defined because of step 3.

@jonas-martinez jonas-martinez added the bug Something isn't working label May 6, 2022
@jonas-martinez jonas-martinez self-assigned this May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant