Closed vitaluska123 closed 2 months ago
Thanks!
Could you provide a sample app to reproduce the issue too?
Thanks!
Could you provide a sample app to reproduce the issue too?
import flet as ft
def main(page: ft.Page):
page.add(ft.SafeArea(ft.Text("Hello, Flet!")))
ft.app(main,view=ft.AppView.FLET_APP_HIDDEN)
This example doesn't work on macOS as well:
from time import sleep
import flet as ft
def main(page: ft.Page):
page.add(
ft.Text("Hello!")
)
sleep(3)
page.window_visible = True
page.update()
ft.app(target=main, view=ft.AppView.FLET_APP_HIDDEN)
Looks like a bug.
Any update on this issue?
Closing this issue in favor of #2705
@FeodorFitsner @ndonkoHenri
The environment I tested:
Python 3.8.13
Windows-10-10.0.19045-SP0
Flet versions tested: every release from 0.23.2 - 0.15.0
.
Test code:
from time import sleep
import flet as ft
def main(page: ft.Page):
page.add(ft.Text("Hello!"))
sleep(3)
page.window_visible = True
page.update()
ft.app(main, view=ft.AppView.FLET_APP_HIDDEN)
Conclusion: view=ft.AppView.FLET_APP_HIDDEN
has been invalid since 0.16.0
, but it is valid in 0.15.0
.
I tested another version to be released, 0.24.0.dev3317
, and the problem still exists.
Description
Code example to reproduce the issue:
Describe the results you received: the window is visible when i start app (include build and run)
Describe the results you expected: When programm start window hiden
Additional information you deem important (e.g. issue happens only occasionally): NONE
Flet version (
pip show flet
):Give your
requirements.txt
file (don'tpip freeze
, instead give direct packages):Operating system:
Additional environment details: Default (flet create)