blue492
blue492

Reputation: 670

Automatically start with capital letter in all Textfield widgets Flutter

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.

Upvotes: 1

Views: 157

Answers (1)

Pathik Patel
Pathik Patel

Reputation: 1490

To achieve this, set textCapitalization to TextCapitalization.sentences as below:

textCapitalization: TextCapitalization.sentences

See more about TextCapitalization

Upvotes: 0

Related Questions