我有一个图像,然后通过转换对其进行缩放,然后将其放置到容器中,并且我希望结果是容器将以图像高度溢出
这是代码
Container(
child: Transform.scale(
scale: 1.8,
child: Image(
image: AssetImage("lib/assets/images/example.jpeg"),
),
),
)
Container(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height*0.5,
child: Transform.scale(
scale: 1.8,
child: Image(
image: AssetImage("lib/assets/images/example.jpeg"),
),
),
)