未定义命名参数“ child”。在Center()构造函数中 [英] The named parameter 'child' isn't defined. in Center() constructor
问题描述
我今天进行了Flutter升级,现在出现一个错误,提示-[dart]未定义命名参数 child。该项目是新创建的,并且未更改默认代码,但仍具有相同的错误:
I ran flutter upgrade today, and now I am getting an error that says- [dart] The named parameter 'child' isn't defined. The project is newly created and the default code is untouched, but it still has the same Error:
推荐答案
实际上,我重新安装了flutter SDK以解决该问题。几天后,发生了相同的错误,但是我开始将鼠标悬停在红线上,一分钟后,该错误被自动解决。我猜一旦打开IDE,SDK将与Internet连接以检查所有库和语法内容。
Actually, I reinstalled the flutter SDK to solve the problem. After a few days, the same error occurred, but then I Started hovering over the red line, after a minute, the error was solved automatically. I guess the SDK connects with internet to check for all the libraries and syntax stuff once we open the IDE.
这篇关于未定义命名参数“ child”。在Center()构造函数中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!