i am capturing an image by camera and want to flip that image as i show in sample picture of Giraffe.
Use Transform
and give the image as child,
Transform(
alignment: Alignment.center,
transform: Matrix4.rotationY(math.pi),
child: Image.network('https://i.sstatic.net/VroJR.png'),
)
With Flutter 3.10.2 and above versions (Don't know about the previous versions have this), you can flip as below:
Transform.flip(
flipX: true, // Flip horizontally
flipY: true, // Flip vertically
child: Your widget,
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With