Flutter:如何制作图像叠加



我有什么方法可以将图像(其中你使用一个背景图像,然后在它前面放另一个图像(叠加在一起吗?。我试过在容器内按列进行,但似乎不起作用。有什么建议或建议吗?我感谢所有的帮助:(

尝试下面的示例了解更多想法:-

Stack(
children: <Widget>[
Container(
width: 100,
height: 100,
color: Colors.red, // replace it with image
),
Container(
width: 90,
height: 90,
color: Colors.green,// replace it with image
),
Container(
width: 80,
height: 80,
color: Colors.blue, // replace it with image
),
],
)

最新更新