Skip to content

feature: Add LayoutControl.transform property for Matrix4 transformations #6195

@FeodorFitsner

Description

@FeodorFitsner

Duplicate Check

Describe the requested feature

We already have LayoutControl.rotate, LayoutControl.scale and LayoutControl.offset.
We need to add LayoutControl.transform for complex Matrix4 transformation.

Suggest a solution

https://api.flutter.dev/flutter/widgets/Transform-class.html

Add an ability to write in Flet something like:

some_control.transform = ft.Matrix4.skewY(0.3).rotateZ(math.pi / 12.0)

or with more detailed:

some_control.transform = ft.Transform(
    matrix=ft.Matrix4.skewY(0.3).rotateZ(math.pi / 12.0),
    alignment=ft.Alignment.TOP_RIGHT,
)

Screenshots

No response

Additional details

No response

Metadata

Metadata

Assignees

Labels

feature requestSuggestion/Request for additional feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions