Rotation In Flutter
Lakshydeep Vikram S.
Software Dev | Constultant | Author @ Google Dev Library | Author: Make Yourself The Software Developer
Suppose you have a widget (image, or icon, or whichever) and you want to rotate it by some degree so how will you do?????
It’s simple. You can use
→?RotatedBox(),
→?Transform.rotate()
for rotating the widget.
RotatedBox()
It can be used to rotate a widget by a quarter turn clockwise.
Here turn refers to the integer value. It means the number of quarter turn you want to rotate a widget.
Transform.rotate()
Here turn refers to an angle (double). It also rotates a widget clockwise by an angle you provide.
By this way, you can rotate a widget either by quarter or by an angle.
The whole code had been uploaded here:
You can check my videos here:
You can follow me on medium:
You can read book as well:
Stay Tuned.
Any feedback will be appreciated.
Share and follow the tag:?#30FlutterTips
Let me know some topics you want me to write.
Follow me on:?LinkedIN?|?GitHub?|?Google DevLibrary?|?YouTube
Stay in touch for more Flutter tips.
Thanks.
Mobile Developer | Frontend Developer |
1 å¹´Thank you it was helpful ??