1.he argument type ‘String?’ can’t be assigned to the parameter type ‘String’
这是flutter2.0以后会报的错
解决方案:是添加 ?? ‘’ 就不会报错了
2.The argument type ‘Object’ can’t be assigned to the parameter type ‘ImageProvider’
解决方案:
((imageUrl??'').isNotEmpty ?NetworkImage(imageUrl??'') : AssetImage(imageAssets??'') ) as ImageProvider<Object>
3.类型不一致,比如A value of type ‘xxx?’ can’t be assigned to a variable of type ‘xxx’
解决方案:类型转换
4.The method ‘compareTo’ can’t be unconditionally invoked because the receiver can be ‘null’
解决方案:使用 ??’’ 解决不为null的问题
5.The function can’t be unconditionally invoked because it can be ‘null’.
解决方案:widget.onChanged!(’’);