Closed fazil-augr closed 5 years ago
You what you mean by color is the fillColor, you need to set the "filled" property of InputDecoration to true.
Ex.
new TextStyle(color: Colors.black, fontSize: 18.0), decoration: new InputDecoration( border: InputBorder.none, filled: true, fillColor: Colors.red, )
Edit: Link to InputDecoration documentation https://docs.flutter.io/flutter/material/InputDecoration-class.html
After clean and rebuild it is working fine. I don't know why it is not working in previous. It is not working in hot reload also. Any way thanks my problem solved.
I want to change the text field color. I tried so methods. No one working
)
Is there any solution?