1、方法的参数里边有方法
SceneHorizontalItemWidget(sceneInfo,sceneInfo.shotInfos![index],index,count, callback: (bool isHover) {_isHover.value = isHover;})
late final int sceneIndex;
late final SceneInfo sceneInfo;
late final ShotInfo shotInfo;
late final int count; //水平列表的总数量
final Function _callback;SceneHorizontalItemWidget(this.sceneInfo, this.shotInfo, this.sceneIndex, this.count,{super.key, required Null Function(bool isHover) callback}): _callback = callback;
2、
bean文件生成
JSON | Flutter
3、参考文档制作 web 应用 | Flutter 中文文档 - Flutter 中文开发者网站 - Flutter
4、集成开发环境VS Code
5、Archive | Flutter

6、flutter doctor 检测环境是否配置正确

