Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The argument type 'MaterialColor' can't be assigned to the parameter type 'Paint'

Tags:

enter image description here

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