我想用json的结果填充一个GridView,但是当我试图使用映射生成数据时,"The argument type 'List<Widget>?'can't be assigned to the parameter type 'List<Widget>'"会为我显示消息。 pokeHub = PokeHub.from
all the children is making an error }
) 这是我遇到的问题:The argument type 'Listcan't be assigned to the parameter type 'List<Widget>'.。我猜问题来自于我的快照,它没有包装在Widget中,但我从代码中获得了灵感,做了同样的事情,似乎没有任何问题。
虽然我将map转换为List,Flutter还是显示了以下错误消息 The argument type 'List<Set<Card>>' can't be assigned to the parametertype 'List<Widget>'.dartargument_type_not_assignable 你能告诉我出什么事了吗?key, required String title}) : super(key: key);
f
自从升级到新版本以来,我一直在尝试引入空安全性。 我不太明白如何使用不可为空的键调用超级构造函数。 我收到的错误(显然涉及键)是“参数类型'Key‘不能分配给参数类型’LocalKey?‘”。‘为空。或者在构造函数中将键设置为“required”似乎也不起作用。 class FadeAnimationPage extends Page {
final Widget?