인프런 커뮤니티 질문&답변
http.get 타입 문제
작성
·
297
답변 2
3
업데이트가 되면서 http.get 메소드의 arg가 바뀐거 같습니다.
Uri 로 넣어주게 바뀐거 같네요. Uri타입으로 넣어주시면 됩니다.
Uri.parse('https://drf-quiz-test.herokuapp.com/quiz/3/')
를 기존 String 대신 넣어주시면 됩니다.
final response = await http.get(Uri.parse('https://drf-quiz-test.herokuapp.com/quiz/3/'));
로 변경하시면 됩니다.
0





