Transforming widgets with the Transform class
We have looked at lots of widgets throughout the previous chapters, but sometimes, we may need to change a widget’s appearance to improve the UX. In response to user input or to make cool effects in the layout, we may need to move the widget around the screen, change its size, or even distort it a little bit.
If you’ve ever tried to achieve this in native programming languages, you may have found it difficult. Flutter, as mentioned previously, is highly focused on UI design and aims to make the developer’s life easier by simplifying what could easily have been a complicated area.
In this section, we will first look at the Transform
widget because it is an incredibly useful widget when you look at widget manipulation. We will then delve deeper into the widget to see the kinds of manipulations it allows us to do.
The Transform widget
The Transform
widget is one of the best examples of the Flutter framework...