Flutter - Formatting text on the fly

preview_player
Показать описание
In this episode, I cover creating text formatters which are used with the TextField or TextFormField. The text formatters can be used to format and validate text on the fly.

This video covers:
- Change inputted text to lowercase
- Change inputted text to uppercase
- Create text formatters to do the job

Source code:
Рекомендации по теме
Комментарии
Автор

any chance to set first letter is capital and others are lowercase?

yadhuvtk
Автор

Any chance in the near future you may do a tutorial on storing data to a local database using 'sqflite'. Creating a table and adding columns at runtime? Which is the preferred approach to storing data as compared to 'firebase'? Are they entirely unrelated to each other?

antd
Автор

Will use this and try to restrict to numbers in a text field. Thank you

antd
Автор

Formatting text doesn't works on iOS...
Have a look at the flutter gallery -> Test fields -> Phone number... and play with the phone number...

alexandresoler