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

Flutter 3.13.5 点击输入框报错:View.of() was called with a context that does not contain a View widget #95

Open
jianchao97 opened this issue Nov 2, 2023 · 1 comment

Comments

@jianchao97
Copy link

jianchao97 commented Nov 2, 2023

你好 Kevin,

我在升级flutter到3.13.5版本之后,在点击输入框的时候会报错:

image

flutter doctor:
image

相同的情况在example CustomKeyboardDemo也会发生,想请问您有什么解决方案吗?

@jianchao97
Copy link
Author

jianchao97 commented Nov 3, 2023

Hi,

After checking I found that the issue was caused by this PR flutter/flutter#116924, which is stated in Flutter 3.10.0 release note. runApp has been modified to automatically wrap the provided widget with the default View into which the app is being rendered after flutter 3.10.0.

image

Issue was resolve after wrap with the default view.

Thanks!

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

1 participant