flet icon indicating copy to clipboard operation
flet copied to clipboard

"SnackBar" doesn't work in MacOS Sonoma v.14.5 (Intel Processor)

Open nastiliano opened this issue 1 year ago • 5 comments

Duplicate Check

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

Describe the bug

Simply the control "SnackBar" doesn't work/appear

Code

page.snack_bar = ft.SnackBar(content = ft.Text("Hello world") , duration = 5000)
page.snack_bar .open = True
page.update()

To reproduce

page.snack_bar = ft.SnackBar(content = ft.Text("Hello world") , duration = 5000)
page.snack_bar .open = True
page.update()

Expected behavior

No response

Screenshots

No response

Operating System

macOS

Operating system details

14.5 (Intel Processor)

Flet version

0.22.1

Regression

No, it isn't

Suggestions

No response

Additional details

No response

nastiliano avatar Jun 14 '24 19:06 nastiliano

I have thesame mac version but with m1 chip and the snackbar works. Can you please some full code i directly run to test? If possible, could you share screenshots?

ndonkoHenri avatar Jun 19 '24 14:06 ndonkoHenri

Thank you very much for your response.

This weekend I'll try just a simple page with some code and I'm going to try again and will inform you.

Thanks.

nastiliano avatar Jun 21 '24 17:06 nastiliano

Hello again.

Imposssible to try anything.

With Flet v.0.23.1 I can't even compile, dark screen with Visual Studio.

Just this code:

import flet as ft

def main(page: ft.Page):

    page.expand = True

    page.add(
            ft.Card(expand = True ,
                    content = ft.Container(expand = True ,
                                           content = ft.Row(alignment = ft.MainAxisAlignment.CENTER ,
                                                            expand = True ,
                                                            vertical_alignment = "START" ,
                                                            #scroll = "ALWAYS" ,
                                                            controls = [ft.Container(ft.Column(expand = True ,
                                                                                               horizontal_alignment = ft.CrossAxisAlignment.START,
                                                                                               scroll = "ALWAYS" ,
                                                                                               controls = [ft.Image(src=f"https://picsum.photos/500?random", 
width=500, height=500, fit=ft.ImageFit.NONE) ,
                                                                                                           ft.TextField(label = "Hello World" , width = 400)
                                                                                                          ]
                                                                                               )
                                                                                    ) ,
                                                                                                
                                                                        ft.VerticalDivider() ,

                                                                        ft.Container(ft.Column(expand = True ,
                                                                                               scroll = "ALWAYS" ,
                                                                                               controls = [ft.Image(src=f"https://picsum.photos/500?random", 
width=500, height=500, fit=ft.ImageFit.NONE) ,
                                                                                                           ft.TextField(label = "Hello World" , width = 400)
                                                                                                          ]
                                                                                              )
                                                                                    )
                                                                        ]
                                                            )
                                            )
                     )
            )

ft.app(target=main)

nastiliano avatar Jun 22 '24 14:06 nastiliano

Even this code works on my end. image

Can you please try the code on web? ft.app(target=main, view=ft.AppView.WEB_BROWSER)

ndonkoHenri avatar Jun 22 '24 14:06 ndonkoHenri

Hello,

Sorry for my delay, but I only have access to MacOS weekends.

This weekend I'll inform to you.

Thanks.

nastiliano avatar Jun 27 '24 18:06 nastiliano

Reopen the issue once you try and still face issues.

ndonkoHenri avatar Jul 20 '24 10:07 ndonkoHenri