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 you add an icon to a button in flutter?
The simplest way to create a button with icon and text in Flutter is to use the new Material button called ElevatedButton with an icon constructor . ElevatedButton. icon() gives you the ability to add the icon and label parameter to the button.
Read moreHow do I add an image to my high button flutter?
icon() which is used to create raised button with Icon images. Using RaisedButton. icon() widget can easily put icon at the left side of button. But to set icon at right side of raised button we have to modify the raised button structure and create custom raised button with Row widget.
Read more