feature: Allow decreasing Dropdown height to harmonize with TextField
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
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
Duplicate Check
- I have searched the opened issues and there are no duplicates
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
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de flet-dev/flet
-
bug controls
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
bug: Interactive Viewer renders grey text when passed alignmentPosiblemente ocupada @ndonkoHenri la tomó hace 6 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
flet-dev/flet#6744 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
feature: Dropdown on_click eventAbiertofeature request
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
Los mantenedores suelen responder en 1 día
Todos los issues de flet-dev/flet
Issues similares
-
bug server
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
sportsdataverse/sportsdataverse-py#641 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
googleapis/google-cloud-python#18532 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día