Fair icon indicating copy to clipboard operation
Fair copied to clipboard

部分组件布局时候转换报错,函数参数传递怎么实现

Open LeeRHuang opened this issue 3 years ago • 1 comments

环境: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'

LeeRHuang avatar Feb 21 '22 06:02 LeeRHuang

我也遇到这个问题, image 你解决了嘛

aga23a avatar Mar 10 '24 20:03 aga23a