How do I change the icon when I pressed on a flutter?

Just wrap the logic around setState(){} in onPressed() of floatingActionButton . When on click on the FloatingActionButton with Refresh Icon, the icon is changed to Stop.

Sizin İçin Seçtik  How do you put an icon on an elevated button in flutter?

Leave a Reply

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

How do I change the icon when I pressed on a flutter?

Just wrap the logic around setState(){} in onPressed() of floatingActionButton . When on click on the FloatingActionButton with Refresh Icon, the icon is changed to Stop.

Sizin İçin Seçtik  How do you put an icon on an elevated button in flutter?

Leave a Reply

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