简体   繁体   English

Flutter 如何在堆栈中显示图像

[英]Flutter how to show images in stack

I have some network image urls in an array.我在一个数组中有一些网络图像 url。 I want to show the images on each other like a stack.我想像堆栈一样显示彼此的图像。 I used listview but it is showing them under together.我使用了列表视图,但它同时显示了它们。

I think the Stack widget is what you need.我认为 Stack 小部件正是您所需要的。 https://api.flutter.dev/flutter/widgets/Stack-class.html and to position your images you can use the Positioned widget. https://api.flutter.dev/flutter/widgets/Stack-class.html并定位您的图像,您可以使用 Positioned 小部件。 This video may help you a lot https://api.flutter.dev/flutter/widgets/Stack-class.html这个视频可能对你有很大帮助https://api.flutter.dev/flutter/widgets/Stack-class.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM