Is it possible to automatically start with capital letter in all Textfield widgets I have in my Flutter app?
Is it possible to configure main or MaterialApp function to make Textfield widgets in the app starts with capital letter when the user start typing?
I cannot configure every Textfield widget I have in the app now, because my app already use hundreds of Textfield widgets everywhere.
CodePudding user response:
To achieve this, set textCapitalization
to TextCapitalization.sentences
as below:
textCapitalization: TextCapitalization.sentences
See more about TextCapitalization
CodePudding user response:
textCapitalization: TextCapitalization.sentences