Skip to content

Instantly share code, notes, and snippets.

@dongsub-joung
Created December 18, 2023 11:03
Show Gist options
  • Save dongsub-joung/db541709ba600494830acdbdcdce258b to your computer and use it in GitHub Desktop.
Save dongsub-joung/db541709ba600494830acdbdcdce258b to your computer and use it in GitHub Desktop.
it's not work
Future<http.Response> fetch_comments() {
return http.get(Uri.parse('https://myapp-api.ngrok.dev/comment/all'));
}
// my_reponsed_value
Instance of '_Future<Response>' X infinity loop
// Json
[{"id":1,"body":"------WebKitFormBoundary5NTYRxVNbLpG3FiD\r\nContent-Disposition: form-data; name=\"body\"\r\n\r\nhi\r\n------WebKitFormBoundary5NTYRxVNbLpG3FiD--\r\n"},{"id":2,"body":"------WebKitFormBoundaryyfVAO70JOwG1deJs\r\nContent-Disposition: form-data; name=\"body\"\r\n\r\nrust\r\n------WebKitFormBoundaryyfVAO70JOwG1deJs--\r\n"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment