flet
flet copied to clipboard
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