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

New Dropdown ignore dense property #5047

Open
1 task done
michep opened this issue Mar 7, 2025 · 1 comment
Open
1 task done

New Dropdown ignore dense property #5047

michep opened this issue Mar 7, 2025 · 1 comment

Comments

@michep
Copy link

michep commented Mar 7, 2025

Duplicate Check

Describe the bug

New Dropdown control does not differ if dense=False or dense=True.

Code sample

Code
import flet as ft
def main(page: ft.Page):
    page.theme_mode = ft.ThemeMode.LIGHT

    new_ddd = ft.Dropdown(
        options=[
            ft.dropdown.Option("new DD, dense"),
        ],
        dense=True,
    )
    new_dd = ft.Dropdown(
        options=[
            ft.dropdown.Option("new DD, not dense"),
        ],
    )
    old_ddd = ft.DropdownM2(
        options=[
            ft.dropdown.Option("old DD, dense"),
        ],
        dense=True,
    )
    old_dd = ft.DropdownM2(
        options=[
            ft.dropdown.Option("old DD, not dense"),
        ],
    )
    row = ft.Row([new_ddd, new_dd, old_dd, old_ddd])
    page.add(row)

ft.app(main)

To reproduce

run sample code

Expected behavior

Dropdown control with dense=True should have "dense" look, like old one.

Screenshots / Videos

Captures

Image

Operating System

Windows

Operating system details

Windows 11

Flet version

0.27.5

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

@michep michep changed the title New Dropdown ignoring dense property New Dropdown ignore dense property Mar 7, 2025
@michep
Copy link
Author

michep commented Mar 8, 2025

here's a PR to fix this: #5050

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

No branches or pull requests

1 participant