Fair
Fair copied to clipboard
部分组件布局时候转换报错,函数参数传递怎么实现
环境:flutter 2.0.6版本 macos 12.0.1 问题:1.很多组件映射不成功,提示没有注册的type类型吗?2.build函数中的布局,提取出去函数但是带有参数传递怎么写? 例如, 1、InkWell is not register 2、ElevateButton is not register 3、type 'WarningWidget' is not a subtype of type is not a subtype of type ‘inputDecoration’ 4、The following _TypeError was thrown while parsing widget of ListView.builder, Closure: (dynamic) => ListView: type '([dynamic]) => dynamic' is not a subtype of type '(BuildContext, int) => Widget'
我也遇到这个问题,
你解决了嘛