If you want to change TextField hint color in Flutter? You can do with hintStyle: in InputDecoration. Below is an example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | TextField( style: TextStyle(fontSize: 20), decoration: InputDecoration( hintText: "Password", hintStyle: TextStyle(fontSize: 20.0, color: Colors.redAccent), border: OutlineInputBorder( borderSide: BorderSide( color: Colors.teal, ), ), prefixIcon: const Icon( Icons.security, color: Colors.white, ), ), ), |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.