Im-Kevin / cool_ui

用flutter实现一些我认为好看的UI控件,有Popover,仿Weui的Toast,自定义键盘
Apache License 2.0
460 stars 74 forks source link

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

Open jianchao97 opened 11 months ago

jianchao97 commented 11 months ago

你好 Kevin,

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

image

flutter doctor: image

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

jianchao97 commented 11 months ago

Hi,

After checking I found that the issue was caused by this PR https://github.com/flutter/flutter/pull/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!