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 I add launcher icons to 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 I change my flutter app icon and name?

Leave a Reply

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