I want to set the background color red, but there is no 'backgroundColor' property under TextStyle widget.
There is background property but i can't set the value for background. It shows error & the error is
The argument type 'MaterialColor' can't be assigned to the parameter type 'Paint'
The error is reasonable, i know. But what should be the value of background property ?
I search but unfortunately can't find :(
I can set background as background: Paint()
and the background goes to black. But i need red background.
What should be the value of background ?
Thanks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With