
i have a http call to upload image to server , after navigating from this page to another page , results in another http call , thus uploading the same image multiple times and this process continues . I am navigating to another page using Navigator.push method , can anybody help me in figuring out the solution to this problem.I believe this is a known issue with flutter , while we should assume that rebuilding is as intended but it results in unnecessary http calls.i have tried calling http request in initState , but did'nt worked.Thanks
No comments:
Post a Comment