-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Currently, when a TextField has decoration with an hint text, the width of this hint element is always integrated into the computation of the intrinsic width of the TextField widget, even if this hint is not displayed (= when the TextField text is not empty). This do not really make sense. As a consequence of this, when wrapping a TextField with an hint into an IntrinsicWidth widget or when setting a suffixText decoration to the TextField, the result is not the one you would expect as the minimal width of the text field would be constrained by the hint width.
This should be fixed by integrating the width of the hint text into the computation of the TextField intrinsic width only when its text is empty (=when the hint is actually displayed).
Metadata
Metadata
Assignees
Labels
Type
Projects
Status