flet icon indicating copy to clipboard operation
flet copied to clipboard

bug: Flet build windows failed

Open zpfz opened this issue 3 months ago • 4 comments

Duplicate Check

  • [x] I have searched the opened issues and there are no duplicates

Describe the bug

I created an flet project according to the documentation Create a new Flet app, then typed the command directly in the terminal flet build windows, but encountered an error. I'm using Windows 11.

Image

Code sample

Code

# main.py
import flet as ft


def main(page: ft.Page):
    page.window.title_bar_hidden = True
    page.window.title_bar_buttons_hidden = True
    # page.padding = 0

    page.add(
        ft.Row(
            [
                ft.WindowDragArea(
                    ft.Container(
                        ft.Text(
                            "Drag this area to move, maximize and restore application window."
                        ),
                        bgcolor=ft.Colors.AMBER_300,
                        padding=10,
                    ),
                    expand=True,
                ),
                ft.IconButton(ft.Icons.CLOSE, on_click=lambda _: page.window.close()),
            ],
            # spacing=0, 
        )
    )


ft.app(main)

To reproduce

1.copy code from WindowDragArea 2.run 'flet build windows'

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

win11

Flet version

lastest

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

zpfz avatar Oct 08 '25 15:10 zpfz

It looks like it cannot download Flutter SDK.

Try install it manually and make sure flutter is in PATH?

FeodorFitsner avatar Oct 08 '25 16:10 FeodorFitsner

It looks like it cannot download Flutter SDK.

Try install it manually and make sure flutter is in PATH?

see this, i think i install it correctly. and Python ver3.13 & Flutter 3.27.3

Image

**

Image

**

zpfz avatar Oct 09 '25 06:10 zpfz

@zpfz It still looks like that your device failed to connect to remote, so there is nothing downloaded. Although you already have flutter 3.27.3, flet requires flutter 3.29.2 to perform the build. Make sure your network connection is available, by using a VPN, I suggest?

Creeper19472 avatar Oct 24 '25 13:10 Creeper19472

Can you please try the latest pre-release and let know if the issue still happens?

ndonkoHenri avatar Dec 16 '25 14:12 ndonkoHenri