Sam12
Sam12

Reputation: 1805

Printing different chars with different colors in flutter

I have String value which I take from firebase with the following format : [A7,B7,A#7,D7,A1]

When I print it in my application, it doesn't appear very clear. So I would like to hide the commas in the list or at least change their colors.

Any help would be appreciated.

Upvotes: 0

Views: 45

Answers (1)

Nuqo
Nuqo

Reputation: 4081

You can use String manipulation to remove the commas:

myString.replaceAll(',',' ');

Upvotes: 1

Related Questions