flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
11.04k stars 427 forks source link

Blank Screen on Mac Intel #3557

Closed Schnurber closed 2 months ago

Schnurber commented 3 months ago

Duplicate Check

Describe the bug

flet run on the Mac (Intel I7 macOS Sonoma): An empty window appears, the program freezes. If I stop the process in the terminal, the Flet app still has to be closed separately via the task manager. This happened after I upgraded flutter (Flutter 3.22.2 with Dart 3.4.3) and installed the latest Flet version 0.23.2. flet run --web is working, but not the native app.

Code

import flet as ft
def main_test(page):
    t = ft.Text(value="Hello, Mac!")
    page.controls.append(t)
    page.update()
ft.app(target=main_test)

To reproduce

flutter upgrade
pip install flet
flet run

Expected behavior

The app should not be an empty window that you can't close.

Screenshots

No response

Operating System

macOS

Operating system details

Intel I7 macOS Sonoma

Flet version

0.23.2

Regression

I'm not sure / I don't know

Suggestions

No response

Additional details

No response

Schnurber commented 3 months ago

last version working is: 0.22.0

beratcmn commented 3 months ago

I am having the same error on my Intel Mac