how to change icon to icon on tap in flutter code example
Example: flutter icon tap
IconButton(icon: new Icon(Icons.bookmark), onPressed: () { /* Your code */ },)
IconButton(icon: new Icon(Icons.bookmark), onPressed: () { /* Your code */ },)