1.(
https://i.sstatic.net/wqb6JeY8.png)
2.(https://i.sstatic.net/zqpqtk5n.png)
3.(https://i.sstatic.net/wSBGuiY8.png)
SizedBox(
width: 500,
height: 200,
child: Image.asset(modern[0].imageurl),
)
现在这可能不是您想要做的,但它可以帮助您看到您面临的问题。 [0] 正在访问列表第一个位置的索引。您可能希望将这些 SizedBox 包装在 Listview.builder 中,以枚举现代中的所有 DetailModel 类型。如果您有任何疑问,请告诉我。