I'm wondering is it possible to use unicode to display icon with FontAwesome package. If it is, how to achieve it?
What is may problem exactly:
Here's my FontAwesome use and I need to replace IconData with string with unicode
CategoriesWidget(
icon: FontAwesomeIcons.fighterJet, // need to replace fighterJet to it's unicode (f0fb)
color: Colors.purple[400],
category: "Military", // it's going to be model.title (from JSON title field)
),
Why I want to do this? I'm passing category data through JSON and I have to make icon possible to change according to data passed.
Part of JSON
title: "Military"
icon: "f0fb" // I can change it directly to name like fighterJet but I cannot use it while it's String not IconData