Saving Icon and Colors info to Firebase's Firestore

1,011 views
Skip to first unread message

Yash Chandra verma

unread,
Aug 20, 2020, 2:03:24 AM8/20/20
to Flutter Development (flutter-dev)
Hello everyone,
In my project, I am storing data to Firebase's Firestore using Flutter's Firestore plugin. Now, how to store Icon and Colors info so that I when I fetch them later, I could use them.

Any help will be appreciated.

Suzuki Tomohiro

unread,
Aug 20, 2020, 8:12:30 AM8/20/20
to Yash Chandra verma, Flutter Development (flutter-dev)
For color, you can store RGB values in Firestore.

What is the file format of icon? If it’s jpeg or png, people use Firebase Storage.


--


You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.


To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/41e3b978-2a06-4df7-9f6a-bb24dacadba4n%40googlegroups.com.


Yash Chandra verma

unread,
Aug 20, 2020, 8:40:45 AM8/20/20
to Flutter Development (flutter-dev)
Note- I am using Icons provided from Flutter that is - for example- Icons.store
Note- For color I am using- Colors.blue or Colors.green

Suzuki Tomohiro

unread,
Aug 20, 2020, 9:31:26 AM8/20/20
to Yash Chandra verma, Flutter Development (flutter-dev)
Good. Then you only need two String fields in Firestore documents.

Reply all
Reply to author
Forward
0 new messages