I want to use a color from Hex Code as my primary swatch color

Hey Guys! One more question today.

I want to use #C1CAD4 as my Primary Swatch Color. I know how to get Color from Hex code but primary swatch only accepts MaterialColor. Is there any way to convert Color to MaterialColor? It’s a very specific requirement of client to use this color only throughout the App, I really don’t want to add color to each individual Scaffold.

Any help is appreciated!



Thanks, it helped me.