flutter column里面的item写法

Column(
                                  children: onLineContributeShowList.isEmpty
                                      ? [Container()]
                                      : onLineContributeShowList
                                          .map((e) => contributeListItem(
                                                userInfoList: e,
                                                roomId: widget.roomId,
                                                anchorInfo: widget.anchorInfo,
                                                userRole: widget.userRole,
                                                source: 1,
                                              ))
                                          .toList(),
                                )

猜你喜欢

转载自blog.csdn.net/weixin_44911775/article/details/130432296