As we have seen until now, Transform widget can help us to modify the widget's natural appearances. Applying transformations to widgets is as simple as adding a Transform widget as the parent of the widget we want to modify. Let's check the alternatives we can use to apply transformations to widgets.
Applying transformations to your widgets
Rotating widgets
As pointed out before, we can use the Transform.rotate() constructor to add a Transform widget to the widget tree responsible for rotating its child. We can use something like this:
Transform.rotate(
angle: -45 * (math.pi / 180.0),
child: RaisedButton(
child: Text("Rotated button"),
onPressed: () {},
),
);
We add a widget that is rotated...