Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

feature: Allow decreasing Dropdown height to harmonize with TextField

Đang mở
#6,594 6 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
flutter, python
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu bằng cách chạy bản tái hiện Python được cung cấp với một TextField và Dropdown ở các chiều cao giảm xuống, sau đó kiểm tra Dropdown và các Flutter constraints bên dưới nó. Hoàn thành khi Dropdown có thể đáp ứng chiều cao nhỏ hơn và căn chỉnh trực quan với TextField mà không cắt phần văn bản của nó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
17.1k
Fork
708
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
45

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của flet-dev/flet

Tất cả issue của flet-dev/flet

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.