I want to display icons or image instead of Only Text in Flutter


I am using this Library. I am passing a String containing Dictionary to this and it gives the graphs accordingly. I want to show an image or Icon instead of the text provided in String.


You need to change in the library files "GraphiteCell",I found out this class from the library. You can edit the library as you want. Where they have set text only. Text(node.id)
You can put icon here but now you have to pass icons from your class and change every classes respectively.

Answered By – Shriya Pandya

Answer Checked By – Gilberto Lyons (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *