flutterpropertiesmaxlength

MaxLength property - change default color


i like to change the default color of the maxLength property to the same color as TextFormField. Does anyone got a solution for the problem?

enter image description here

Thank you!


Solution

  • The following example should help, just change the color property to the one you desire:

    TextFormField(decoration: InputDecoration(
                              counterStyle: TextStyle(color: Colors.black),)
                        ...
                        ...
                  )