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.
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.