flet icon indicating copy to clipboard operation
flet copied to clipboard

Flet app startup issue in Windows Build

Open wpritom opened this issue 6 months ago • 7 comments

Inconsistent performance in Windows build has been observed. There are 3 scenarios after running the executable file.

  1. UI Loads instantly
  2. UI loads after a waiting for a few seconds
  3. UI does not load even after 10 seconds. (seems like app has been crashed)

There is no way to sense the reason behind this behavior. This happens for as simple code as following:

import datetime
import flet as ft

def notify_user(e):
   pass
    
async def main(page: ft.Page):

    tool_column = ft.Column([ft.Text("HELLO")])

    page.add(
        tool_column
        )

ft.app(main)

The app is build with the following command.

flet build windows --project sample--module-name app.py --output build --verbose

OS : Windows 11 Python: 3.12.4 Flet: 0.23.2 Flutter: 3.22.3

The build is also tested in other desktops. The behavior was same.

wpritom avatar Jul 30 '24 04:07 wpritom