bug: TextField does not resize vertically
Maintainer thường phản hồi trong vòng 1 ngày
@ndonkoHenri đang làm issue này rồi.
Từ ngày 4/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the bug
TextField controls do not expand vertically:
Setting height explicitly does not work either, but setting min_lines does.
Code sample
Code
import flet as ft
def main(page: ft.Page):
page.add(
ft.Container( # red = outer container, should fill the page
expand=True,
border=ft.Border.all(2, ft.Colors.RED),
content=ft.Row(
expand=True,
vertical_alignment=ft.CrossAxisAlignment.STRETCH,
controls=[
ft.Container( # blue = wraps the TextField, should fill the Row
expand=True,
border=ft.Border.all(2, ft.Colors.BLUE),
content=ft.TextField(
label="Journal entry",
multiline=True,
expand=True,
border_color=ft.Colors.GREEN, # green = the field itself
),
),
],
),
)
)
ft.run(main)
To reproduce
just run the provided code
Expected behavior
I'd like a way for the TextField to expand to arbitrary height. The min_lines workaround is only approximate and needs to be recalculated on every resize.
Screenshots / Videos
Captures
[Upload media here]
Operating System
Linux
Operating system details
Linux hp15fc0xxx 7.2.8-artix1-1 #1 SMP PREEMPT_DYNAMIC Thu, 01 Oct 2026 07:52:48 +0000 x86_64 GNU/Linux
Flet version
1.0.3
Regression
I'm not sure / I don't know
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response
- Ngôn ngữ chính
- Python
- Star
- 17.5k
- Fork
- 740
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 74
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của flet-dev/flet
-
feature: python 3.15 supportĐang mởfeature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
flet-dev/flet#6985 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Web: `TextField.focus()` after `on_submit` discards keys typed while the focus request is in flightĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Web: TextField values set through the DOM (autofill-like) are lost; on_submit carries an empty valueĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
feature request
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của flet-dev/flet
Issue tương tự
-
integration: logger
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
home-assistant/core#191147 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation p4
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
MillenniumDawn/focus-tree-creation-tool#417 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
CharlesP44/Beem_Energy#96 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
rheeloaded/paperpull#153 ·
Maintainer thường phản hồi trong vòng 1 ngày