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

空安全问题 #22

Open
jsseejen opened this issue Jul 21, 2023 · 2 comments
Open

空安全问题 #22

jsseejen opened this issue Jul 21, 2023 · 2 comments

Comments

@jsseejen
Copy link

Flutter 3.0.5 • channel flutter-2.13-candidate.0
Tools • Dart 2.17.6 • DevTools 2.12.2
以上版本使用中,在floating.dart文件110行,会报错提示Overlay.of(context)有可能为空,需要改为:
Overlay.of(context)?.insert(_overlayEntry);

@mymirror
Copy link

改为 Overlay.of(context)?.insert(_overlayEntry); 窗口就不显示了,

@LvKang-insist
Copy link
Owner

因为项目是适配了空安全,所以需要在 sdk 3.0.0 以上的环境运行,否则就会有空安全的问题出现,可以自行升级sdk版本或者copy项目自己去修改代码

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