Skip to main content

Transform

Configuration for flet.LayoutControl.transform.

Applies a generic matrix transform backed by recorded Matrix4.

Properties

  • alignment - The alignment of the origin, relative to the size of the box.
  • filter_quality - The filter quality with which to apply this transform as a bitmap operation.
  • matrix - Matrix transform intent recorded in Python and replayed in Flutter.
  • origin - The origin of the coordinate system (relative to the upper left corner).
  • transform_hit_tests - Whether to apply the transformation when performing hit tests.

Properties

alignmentclass-attributeinstance-attribute

alignment: Optional[Alignment] = None

The alignment of the origin, relative to the size of the box.

filter_qualityclass-attributeinstance-attribute

filter_quality: Optional[FilterQuality] = None

The filter quality with which to apply this transform as a bitmap operation.

matrixinstance-attribute

matrix: Matrix4

Matrix transform intent recorded in Python and replayed in Flutter.

originclass-attributeinstance-attribute

origin: Optional[Offset] = None

The origin of the coordinate system (relative to the upper left corner).

transform_hit_testsclass-attributeinstance-attribute

transform_hit_tests: bool = True

Whether to apply the transformation when performing hit tests.