본문 바로가기
개발/Flutter

How to save Color data in flutter

by dev_caleb 2022. 12. 1.
728x90

We use Color value in flutter many time.

 

But I didn't know how to save the Color data in DataBase(I use Firebase).

 

I recommend use int.

 

You can extract int value as add ".value";

 

and You can make Color class with int value easily. (Ex. Color(int))

 

728x90