Stack(
clipBehavior: Clip.hardEdge,
children: [
Positioned(
top: -30, //negative value will shift to up side
right: -30, // this will shift pixel to the right
child: Container(
width: 100, //,
height: 100,
child: Image.network(
" ",
fit: BoxFit.cover,
)),
)
],
),
2条答案
按热度按时间z4bn682m1#
您可以使用Stack小部件,
wbrvyc0a2#
将Container和BoxDecoration与clipBehaviour沿着使用。将Container的形状设置为所需的形状,然后将clipBehaviour设置为Clip.hardEdge