Flutter 颤振:如何制作图像覆盖?
我有没有办法在flutter中叠加图像(你使用背景图像,然后在它前面放另一个图像)?。我试着在容器内的列中进行,但似乎不起作用。有什么建议或提示吗?我感谢所有的帮助:)请尝试下面的示例了解更多想法:-Flutter 颤振:如何制作图像覆盖?,flutter,Flutter,我有没有办法在flutter中叠加图像(你使用背景图像,然后在它前面放另一个图像)?。我试着在容器内的列中进行,但似乎不起作用。有什么建议或提示吗?我感谢所有的帮助:)请尝试下面的示例了解更多想法:- Stack( children: <Widget>[ Container( width: 100, height: 100, color: Colors.red, // replace it with image ), C
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
),
],
)
堆栈(
儿童:[
容器(
宽度:100,
身高:100,
颜色:Colors.red,//将其替换为图像
),
容器(
宽度:90,
身高:90,
颜色:Colors.green,//将其替换为图像
),
容器(
宽度:80,
身高:80,
颜色:Colors.blue,//将其替换为图像
),
],
)
您可以使用堆栈小部件bro