Scale transformation

The scale transformation appears in situations where we want to simply cause our widget to change its size, either by increasing or decreasing its scale. We can get something like this:

This kind of transformation is typically done by using the Transform.scale() constructor. Let's see what it looks like:

Transform.scale({    Key key,    @required double scale,    Offset origin,    AlignmentGeometry alignment: Alignment.center,    bool transformHitTests: true,    Widget child})

As you can see, just like the rotate() factory constructor, this variant does not differ too much from the default one:

  • Absence of the transform property: Here, ...

Get Flutter for Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.