Debug School

rakesh kumar
rakesh kumar

Posted on

Flutter:setState() is not working in async calls in flutter

Instead of performing asynchronous work inside a call to setState(), first execute the work (without updating the widget state), and then synchronously update the state inside a call to setState().

Image description


remove asyn and await  from methods
Enter fullscreen mode Exit fullscreen mode

Image description

Top comments (0)