I need to start the indeterminate circle loading animation on click of a button, make a network call and stop the loading animation after getting a response from the network call and reset the button to its previous state. I know it seems very simple but I could not manage to do it even with the documentation.
I need to start the indeterminate circle loading animation on click of a button, make a network call and stop the loading animation after getting a response from the network call and reset the button to its previous state. I know it seems very simple but I could not manage to do it even with the documentation.
Could someone help me out with this?