Transform class

Rotates, scales, or shifts child at paint time. Layout size is unchanged.

Inheritance

Constructors

Transform.rotate({required double angle, AlignmentGeometry alignment = Alignment.center, required Widget child})
Transform API.
const
Transform.scale({double scale = 1, double? scaleX, double? scaleY, AlignmentGeometry alignment = Alignment.center, required Widget child})
scale API.
const
Transform.translate({required PwOffset offset, required Widget child})
translate API.
const

Properties

alignment → AlignmentGeometry
alignment API.
final
angle → double
Radians. Positive is clockwise in the page's top-left space.
final
child → Widget
child API.
final
flowChildren → List<Widget>?
Children MultiPage should flow individually (vertical columns).
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scaleX → double
scaleX API.
final
scaleY → double
scaleY API.
final
translation → PwOffset
translation API.
final

Methods

layout(Context context, BoxConstraints constraints) → PwBox
layout API.
override
layoutSpan(Context context, BoxConstraints constraints) → SpanSlice?
Split across pages when constraints has a bounded height.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintStamp(Context context, double pageW, double pageH) → void
Stamp paint. The default lays out and paints glyph by glyph.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited