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

feature: Allow decreasing Dropdown height to harmonize with TextField

Abierto
#6,594 6 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
flutter, python
Área
frontend

Línea de trabajo

Empieza ejecutando la reproducción de Python proporcionada con un TextField y un Dropdown a alturas reducidas; después, inspecciona el Dropdown y las restricciones subyacentes de Flutter. Se considera terminado cuando el Dropdown puede admitir una altura menor y alinearse visualmente con el TextField sin recortar su texto.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

feature request
Duplicate Check
Describe the requested feature

Is your feature request related to a problem? Please describe.
Currently, it is not possible to decrease the height of a Dropdown control to match the reduced height of a TextField. When building dense data-entry forms, placing a TextField and a Dropdown side by side results in visually misaligned components, breaking the UI harmony. The Dropdown seems to maintain a default minimum height that cannot be easily overridden.

Describe the solution you'd like
I would like a way to customize the minimum height of the Dropdown control (e.g., fully honoring the height property or adjusting internal content_padding without clipping the text), allowing it to perfectly align with a TextField that has been scaled down.

Describe alternatives you've considered
I have tried adjusting the height and content_padding properties of the Dropdown, but the internal constraints of the underlying Flutter widget prevent it from shrinking harmoniously alongside the TextField.

Additional context
Here is a quick reproduction showing the height mismatch:

import flet as ft

def main(page: ft.Page):
page.add(
ft.Row([
ft.TextField(label="Text input", height=32),
ft.Dropdown(label="Dropdown input", options=[ft.dropdown.Option("Option 1")], height=40)
])
)

ft.app(target=main)

Suggest a solution

No response

Screenshots

No response

Additional details

No response

Lenguaje dominante
Python
Estrellas
17.1k
Forks
708
Merge medio
1 d 17 h
PR fusionados (30 d)
46

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.