Posts

Showing posts with the label flutter translate

Rotate, Scale, Skew or Translate Widgets in Flutter using Transform

Flutter translate -  This article describes how easily you can rotate, scale or translate widgets in Flutter. We can do that with the  help of Transform Widget. Below is the demo of the app that we are going to build. The types of Transform widgets are: Transform (default constructor) Transform.rotate Transform.scale Transform.translate Rotate Our Screen will have a Slider to change the value of rotate or scale, translate or skew. Then three container widgets that does all the four transformations. Below function returns a container that implements Rotate Transform. Container rotate() {    return Container(      child: Transform.rotate(        angle: sliderVal,        origin: Offset(0.0, 0.0),        child: Container(          height: 50.0,       ...