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文件生成
3、参考文档制作 web 应用 | Flutter 中文文档 - Flutter 中文开发者网站 - Flutter
4、集成开发环境VS Code
6、flutter doctor 检测环境是否配置正确
7、Listview 的item滑出不被销毁的方法
class ListViewState extends State<ListViewWidget>
with AutomaticKeepAliveClientMixin { @override bool get wantKeepAlive => true; }