Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't modify dismiss_direction #4553

Closed
1 task done
Michel7GitHub opened this issue Dec 12, 2024 · 1 comment · Fixed by #4557
Closed
1 task done

Can't modify dismiss_direction #4553

Michel7GitHub opened this issue Dec 12, 2024 · 1 comment · Fixed by #4557

Comments

@Michel7GitHub
Copy link

Duplicate Check

Describe the bug

I use Flet v0.25.1 on Windows 11.
I want to use Dismissible with VERTICAL dismiss direction.
It looks like dismiss_direction parameter is not taken into account.
In the following code sample, I use print(f"Direction: {e.direction}") and always get
Direction: DismissDirection.START_TO_END

import flet as ft

def main(page):
    page.add(
        ft.Dismissible(
            content=ft.Container(
                ft.Text( " Hello "),
                width=page.width,
                height=50,
                bgcolor='amber100'
            ),
            dismiss_direction=ft.DismissDirection.VERTICAL,
            on_update=lambda e: print(f"Direction: {e.direction}")
        )
    )

ft.app(main)

Code sample

Code
[Paste your code here]

To reproduce

Execute the code sample

Expected behavior

Dismiss VERTICALY

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

Windows 11

Flet version

0.25.1

Regression

No, it isn't

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

@ndonkoHenri
Copy link
Contributor

This issue has been fixed. Give the the latest pre-release a try: pip install 'flet[all]' --pre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants