答案 0 :(得分:1)
您可以为此使用Stack小部件。您可以将图像列表传递到堆栈的children
属性。
示例:
class _StackImagesState extends State<StackImages> {
List<String> _urls = [];
@override
void initState() {
super.initState();
_urls = [
"https://toppng.com/uploads/preview/royalty-free-stock-eyelash-clipart-glitter-glitter-eyelash-transparent-background-11562955805upbu10lfl4.png",
"https://www.netclipart.com/pp/m/8-82184_banner-free-stock-apple-transparent-background-image-apple.png"
];
}
@override
Widget build(BuildContext context) {
return Stack(
children:_urls.map((String url) => Image.network(url)).toList(),
);
}
}
答案 1 :(得分:0)
Stack(
alignment: Alignment.centerRight,
children: <Widget>[
Image.network(url:arr[0]),
Image.network(url:arr[1]),
],
),
);
您可以从数组中一张一张地放置图像