Flutter 将幻灯片转换动画添加到整个页面中的特定小部件
我试图在整个页面中为特定的小部件添加幻灯片转换 我尝试添加该Transform.rotate,但没有按照我想要的方式工作: 我想要的是:图像应该从屏幕的左侧出现 以下是我的代码片段:Flutter 将幻灯片转换动画添加到整个页面中的特定小部件,flutter,widget,flutter-layout,flutter-animation,Flutter,Widget,Flutter Layout,Flutter Animation,我试图在整个页面中为特定的小部件添加幻灯片转换 我尝试添加该Transform.rotate,但没有按照我想要的方式工作: 我想要的是:图像应该从屏幕的左侧出现 以下是我的代码片段: Positioned( top: 220, left: 600, child: Container( height: 500.h, width: 600.w,
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),
),
),
),
结帐