bug: Flet build windows failed
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.
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
It looks like it cannot download Flutter SDK.
Try install it manually and make sure flutter is in PATH?
It looks like it cannot download Flutter SDK.
Try install it manually and make sure
flutteris in PATH?
see this, i think i install it correctly. and Python ver3.13 & Flutter 3.27.3
**
**
@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?
Can you please try the latest pre-release and let know if the issue still happens?