Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

bug: Repetitive dropdown functions (Dropdown and DropdownM2), as well as invalid documents (such as dense invalidation)

Abierto
#6,554 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@ndonkoHenri ya está trabajando en esto.

Desde el 27/8/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

bug
Duplicate Check
Describe the bug

In the official document, ft.Dropdown dense attribute invalid. And the height and menu_height are not displayed according to the preset values.DropdownM2 doesn't know if it's going to be deprecated.(https://flet.dev/docs/controls/dropdownm2/ Page Not Found)

Code sample
Code
import flet as ft


def main(page: ft.Page):
    page.add(
        ft.Column(
            controls=[
                ft.Row(
                    controls=[
                        ft.Dropdown(),
                        ft.Dropdown(dense=True),
                        ft.Dropdown(dense=False),
                        ft.Dropdown(),
                    ]
                ),
                ft.Row(
                    controls=[
                        ft.Dropdown(height=24),
                        ft.Dropdown(height=36),
                        ft.Dropdown(height=48),
                        ft.Dropdown(height=96),
                    ]
                ),
                ft.Row(
                    controls=[
                        ft.Dropdown(
                            menu_height=24,
                            options=[
                                ft.DropdownOption("a", "Style 2A"),
                                ft.DropdownOption("b", "Style 2B"),
                                ft.DropdownOption("c", "Style 2C"),
                            ],
                        ),
                        ft.Dropdown(
                            menu_height=36,
                            options=[
                                ft.DropdownOption("a", "Style 2A"),
                                ft.DropdownOption("b", "Style 2B"),
                                ft.DropdownOption("c", "Style 2C"),
                            ],
                        ),
                        ft.Dropdown(
                            menu_height=48,
                            options=[
                                ft.DropdownOption("a", "Style 2A"),
                                ft.DropdownOption("b", "Style 2B"),
                                ft.DropdownOption("c", "Style 2C"),
                            ],
                        ),
                        ft.Dropdown(
                            menu_height=96,
                            options=[
                                ft.DropdownOption("a", "Style 2A"),
                                ft.DropdownOption("b", "Style 2B"),
                                ft.DropdownOption("c", "Style 2C"),
                            ],
                        ),
                        ft.Dropdown(
                            menu_height=200,
                            options=[
                                ft.DropdownOption("a", "Style 2A"),
                                ft.DropdownOption("b", "Style 2B"),
                                ft.DropdownOption("c", "Style 2C"),
                            ],
                        ),
                    ]
                ),
            ]
        )
    )


if __name__ == '__main__':
    ft.run(main)

To reproduce

Run the repro code.

Expected behavior

No response

Screenshots / Videos
Captures

[Upload media here]

Operating System

Windows

Operating system details

11

Flet version

0.85.2

Regression

I'm not sure / I don't know

Suggestions

Repair functionality or update documentation, or make better choices for Dropdown.

Logs
Logs
[Paste your logs here]
Additional details

No response

Lenguaje dominante
Python
Estrellas
17.4k
Forks
737
Merge medio
1 d 9 h
PR fusionados (30 d)
57

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de flet-dev/flet

Todos los issues de flet-dev/flet

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.