我正尝试向整个页面中的特定小部件添加幻灯片过渡。
我尝试添加该Transform.rotate,但无法实现我想要的方式:
我想要的是:该图像应该从屏幕左侧出现。
这是我的代码段:
Positioned(
top: 220,
left: 600,
child: Container(
height: 500.h,
width: 600.w,
child: Transform.rotate(
angle: image.value,
child: Image.asset('images/home.png', fit: BoxFit.contain),
),
),
),