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

[flash-1.4.0-nullsafety] Warning: Operand of null-aware operation '?.' has type 'NavigatorState' which excludes null. #18

Closed
devj3ns opened this issue Mar 8, 2021 · 2 comments

Comments

@devj3ns
Copy link
Contributor

devj3ns commented Mar 8, 2021

I am getting this warning when running my Flutter app (Flutter 2.0.1, stable channel).

/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flash-1.4.0-nullsafety/lib/flash.dart:91:33: Warning: Operand of null-aware operation '?.' has type 'NavigatorState' which excludes null.
 - 'NavigatorState' is from 'package:flutter/src/widgets/navigator.dart' ('/C:/flutter/packages/flutter/lib/src/widgets/navigator.dart').
    var rootOverlay = Navigator.of(context)?.overlay;
@devj3ns
Copy link
Contributor Author

devj3ns commented Mar 8, 2021

I just saw that this commit fixed the warning: e5e2fd7

@sososdk Can you please upload the newest version with the fix to pub.dev?

@sososdk
Copy link
Owner

sososdk commented Mar 9, 2021

Done. Please use 1.5.0.

@sososdk sososdk closed this as completed Mar 9, 2021
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

2 participants