Find the constructor parameter icon or whatever it is. Now change its type from IconData (mostly) to Widget and now find the usage with simple searching/looking for the keyword and adjust/fit in the changed icon parameter as a Widget . because Icon() is also a widget which used the earlier IconData widget.
Read moreHow do you use icons on Flutter?
How to Generate Custom Icons in Flutter
Read moreHow do I put an image in my icon on Flutter?
Steps to Add an Image:
Read moreHow do I use an image as an icon?
Go to menu Image > New Device Image, or right-click in the Image Editor pane and choose New Device Image. Select the type of image you want to add . You can also select Custom to create an icon whose size isn’t available in the default list.
Read moreHow do I use an image file?
How to open IMG files
Read moreHow do I get the image from flutter?
“flutter get file from image” Code Answer’s
Read moreWhat does image File do in flutter?
Creates a widget that displays an ImageStream obtained from a File . The file , scale , and repeat arguments must not be null. Either the width and height arguments should be specified, or the widget should be placed in a context that sets tight layout constraints.
Read more