wuba / Fair

A Flutter package used to update widget tree dynamically. Fair提供一整套Flutter动态化解决方案
https://fair.58.com
BSD 3-Clause "New" or "Revised" License
2.61k stars 310 forks source link

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

Open LeeRHuang opened 2 years ago

LeeRHuang commented 2 years ago

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

aga23a commented 7 months ago

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