Home > Back-end >  The argument type 'Color' can't be assigned to the parameter type 'MaterialColor
The argument type 'Color' can't be assigned to the parameter type 'MaterialColor

Time:12-13

How can I use RGBO in primarySwatch enter image description here

CodePudding user response:

primarySwatch is not a Color. It's MaterialColor. Which means it's a the different shades of a color a material app will use. Default color is blue. For more read articles https://dev.to/rohanjsh/custom-swatch-for-material-app-theme-primaryswatch-3kic

What is the difference between primaryColor and primarySwatch in Flutter?

  • Related