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

fix: Overlay.of(context) nullable #66

Merged
merged 3 commits into from
Sep 3, 2023
Merged

fix: Overlay.of(context) nullable #66

merged 3 commits into from
Sep 3, 2023

Conversation

bensonarafat
Copy link
Owner

Fixed #62

@UKOM
Copy link

UKOM commented Aug 24, 2023

I have checked the source code of Flutter 3.3.10 version SDK and found that the function Overlay.of(context) returns a nullable OverlayState. However, in the latest version of the Flutter API documentation, the same function returns a non-nullable OverlayState. So, in order to maintain compatibility with lower versions, I think we should suppress the error from Flutter analyze.

@bensonarafat
Copy link
Owner Author

@UKOM
I did the same. Overlay.of(context) returns a non-nullable.
Haven't got time to work it out.
I will soon

@bensonarafat bensonarafat merged commit 7eba7aa into master Sep 3, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

Overlay.of(context) return nullable OverlayState, should not be accessed directly
2 participants