Skip to content

SnackBar example on flet.dev is wrong #376

@Alexanderstaehle

Description

@Alexanderstaehle

Duplicate Check

Describe the bug

In the documentation of the SnackBar in the on_click method it says:
page.snack_bar.open = True

While it should be:
page.open(snack_bar)

Code sample

Code
[Paste your code here]

To reproduce

Use page.snack_bar.open = True instead of the correct page.open(snack_bar)

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

Windows 11

Flet version

0.26.0

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions