In a Flutter app, initially many icons were implemented as png images in their 3 sizes like so:
child: new Image(
image: new AssetImage(widget.featureNavMenu.image),
),
which expects a string
image: "assets/images/superCheckMark.png",
Now, I want to convert the children to a custom icon font (font glyphs).
However, changing to this...
child: new Icon((icon), size: 25.0,),
and trying to get it to accept this...
new Icon(MyIcons.superCheckMark, size: 30.0, color: Colors.white,),
breaks the app.
What is the correct way to get the app to accept an icon instead of image? I've actually tried many different things according to Flutter's somewhat general documentation and am stumped.