Flutter made it easy for developers to build complex UI in record time. With a number of awesome widgets like Rows, Columns, ListView and Positioned, we can play around the screen and get our desired output and be satisfied at the end of the day. But what if you need a widget that is not available in the Flutter Widget Catalog? What if your requirement is so awesome and innovative that it is still not yet thought of by any one. In this case, you my friend, are there to bring it to life.

In order to let developers build their own widgets, Flutter has many classes in store and has actually made it pretty simple for the developers to utilize them.

Transformations

Transform widget takes a Matrix4 object as a transformation guide to apply on the widget passed as a child.

Image for post

Example of rotation using Transform widget.

Image for post

Example of scaling using Transform widget.

Image for post

Example of translation using Transform widget.

#paint #dart #custom #flutter #drawer

Understand Transformations and CustomPaint Widgets in Flutter
6.35 GEEK