Most of the time, dynamic Colors in flutter will fetch from the server. But what if we need to generate a dynamic color just based on title or name? Is there any way to convert a simple string to a color on flutter? For example:
- input:
String title = "Lord of the rings";
- Output
Color color = getTitleColor(title);
- List item
- List item
- if it needs any package, please add
- if you know a clean way to add among all the project, please add
if you want to contact me:
My resume web page based on flutter web