How to dynamically change the font size in the text field

230 views Asked by At

I am writing an application on Flutter. I want to dynamically change the font size in the text field (actually TextFormField) when the number of characters in it increases. What I want to achieve is that when a user enters a huge amount, I want to reduce the font size of the text field to accommodate the entire amount.

1

There are 1 answers

0
kovalyovi On BEST ANSWER

There is a very useful library you might want to take a look at which is auto_size_text. It has some good controls for the dynamic text size change based on length and other attributes.