Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This example breaks flet without throwing a Python exception #3287

Open
kristaller486 opened this issue May 14, 2024 · 0 comments
Open

This example breaks flet without throwing a Python exception #3287

kristaller486 opened this issue May 14, 2024 · 0 comments

Comments

@kristaller486
Copy link

Description

In the code example below, flet breaks without any clear debugging messages. If the error is expected behavior, it would still be helpful to see what caused the error.

import flet as ft


def main(page: ft.Page):
    app = ft.Column([
        ft.Column(expand=True), # without expand=True all right
        ft.Row([ft.TextField()])
    ])
    page.add(app)
    page.update()


ft.app(target=main)

Describe the results you received:

When running the code flutter gives errors and the UI doesn't work

flet run
[ERROR:flutter/flow/layers/transform_layer.cc(23)] TransformLayer is constructed with an invalid matrix.
[ERROR:flutter/flow/layers/transform_layer.cc(23)] TransformLayer is constructed with an invalid matrix.
[ERROR:flutter/flow/layers/transform_layer.cc(23)] TransformLayer is constructed with an invalid matrix.
[ERROR:flutter/flow/layers/transform_layer.cc(23)] TransformLayer is constructed with an invalid matrix.
[ERROR:flutter/flow/layers/transform_layer.cc(23)] TransformLayer is constructed with an invalid matrix.

Describe the results you expected:

Something like Error: expand=True not allowed here

Flet version (pip show flet):

Version: 0.22.1

Give your requirements.txt file (don't pip freeze, instead give direct packages):

flet==0.22.1

Operating system:

Linux Mint 20.3 and Web (Chromium 121.0.6167.160)

Additional environment details:

Python 3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant