flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
10.81k stars 416 forks source link

"Black Screen" in MacOS Sonoma v.14.5 (Intel Processor) & Flet v0.23.2 #3727

Closed nastiliano closed 6 days ago

nastiliano commented 1 month ago

Duplicate Check

Describe the bug

I've updated to Flet v.023.2 and I removed the folder ("rm -rf ~/.cookiecutters") as @FeodorFitsner said in other post.

But I can't execute anything, all appears in "Black Screen"

Code sample

Logs ```python import flet as ft def main(page): page.horizontal_alignment = ft.CrossAxisAlignment.CENTER def close_anchor(e): text = f"Color {e.control.data}" anchor.value = text anchor.update() # print(f"closing view from {text}") # anchor.close_view(text) anchor = ft.SearchBar( view_elevation=4, divider_color=ft.colors.AMBER, bar_hint_text="Search colors...", view_hint_text="Choose a color from the suggestions...", controls=[ ft.ListTile(title=ft.Text(f"Color {i}"), on_click=close_anchor, data=i) for i in range(10) ], ) page.add( ft.Row( alignment=ft.MainAxisAlignment.CENTER, controls=[ ft.OutlinedButton( "Open Search View", on_click=lambda _: anchor.open_view(), ), ], ), anchor, ) ft.app(target=main) ```

To reproduce

Anything

Expected behavior

No response

Screenshots / Videos

Screenshots / Video demonstration [Upload media here]

Operating System

macOS

Operating system details

14.5 (Intel Processor)

Flet version

0.23.2

Regression

No, it isn't

Suggestions

No response

Logs

Logs ```console [Paste your logs here] ```

Additional details

No response

ndonkoHenri commented 1 month ago

When running the packaged macOS app? Or when running in normal mode.

Can you equally give a try to the latest prerelease: pip install flet -U --pre

nastiliano commented 1 month ago

Hello,

Ok! It works!

But with some "peculiarities".

For example, I have problems to show "Views". (my code works completly fine in Windows and Linux).

If we put "True" to our global variable "page.adaptive" , the GUI looks ugly (not similar to other O.S) and "Snackbar" doesn't work... If we put "False" looks like Windows or Linux and "Snsckbar" works again.

I'm going to check all this stuff and post another issue anyway.

Thank you very much. Best regards.

PD: All just running in normal mode, not packaged

nastiliano commented 6 days ago

Hello,

I realized that "the showing Views" issue" starts in 0.24 version in all platforms.

I opened an official issue.

Thanks!!