how to define your own color in flutter | android studio

 how to define your own color in flutter |  android studio

make a Dart file with constant name.


make a new file with any name and and in TextStyel use your define color as

 style: TextStyle(color: blueColor


If your client said you to change color blue to orange, go to constant file and change the blueColor with client color as
const Color blueColor = Colors.orange;


select the blueColor    and refactor it and  Rename, 


 it will change automatically where this name is used in all files   





      

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.