我今天运行了 flutter upgrade,现在我收到一条错误消息:
[dart] The named parameter 'child' isn't defined.
项目是新建的,默认代码没有动,但是还是一样的错误:
最佳答案
通过运行清理项目缓存
flutter clean cache
然后使缓存无效/重新启动Android Studio 或 VS Code。
关于dart - 命名参数 'child' 未定义。在 Center() 构造函数中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51480043/