How To Add Custom Color To Primaryswatch Flutter

[Solved] How To Add Custom Color To Primaryswatch Flutter | Php - Code Explorer | yomemimo.com
Question : how to set primarySwatch custome color flutter

Answered by : energetic-eland-07e5831fycdy

Map<int, Color> color =
{
50:Color.fromRGBO(51, 153, 255, .1),
100:Color.fromRGBO(51, 153, 255, .2),
200:Color.fromRGBO(51, 153, 255, .3),
300:Color.fromRGBO(51, 153, 255, .4),
400:Color.fromRGBO(51, 153, 255, .5),
500:Color.fromRGBO(51, 153, 255, .6),
600:Color.fromRGBO(51, 153, 255, .7),
700:Color.fromRGBO(51, 153, 255, .8),
800:Color.fromRGBO(51, 153, 255, .9),
900:Color.fromRGBO(51, 153, 255, 1),
};
...
primarySwatch: MaterialColor(0xFF3399FF, color)

Source : https://stackoverflow.com/questions/62432229/how-to-assign-hexadecimal-color-code-in-primaryswatch-in-flutter | Last Update : Sat, 03 Sep 22

Question : how to add custom color to primaryswatch flutter

Answered by : meet-patel

// read this blog
https://dev.to/rohanjsh/custom-swatch-for-material-app-theme-primaryswatch-3kic

Source : | Last Update : Sat, 05 Mar 22

Answers related to how to add custom color to primaryswatch flutter

Code Explorer Popular Question For Php