Issue
How to change hint text
length, of textfield
widget?. The hint text is truncated with ...
for an example, Write your text here by cli...
. But I need it to show the full length.
TextField(
minLines: null,
maxLines: null,
maxLength: 100,
keyboardType: TextInputType.multiline,
decoration: InputDecoration(
border: InputBorder.none,
hintText: 'Write your text here by clicking here on this loonnggggg text'
),
),
);
Solution
you can use hintMaxLines
. like hintMaxLines: 2
TextField(
minLines: null,
maxLines: null,
maxLength: 100,
keyboardType: TextInputType.multiline,
decoration: InputDecoration(
border: InputBorder.none,
hintText: 'Write your text here by clicking here on this loonnggggg text',
hintMaxLines: 2,
),
)
Answered By - Chirag Kothiya
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.