Flutter
Error: The argument type 'String' can't be assigned to the parameter type 'Uri'에러
김뱅쓰
2023. 7. 19. 14:26
[Flutter] The argument type 'String' can't be assigned to the parameter type 'Uri'.
상황 flutter의 http를 사용하려고 하는데 예제와 동일하게 http.get을 요청했지만 에러가 발생했습니다. 문제 파악 http: ^0.13.3 버전이 올라가면서 Uri를 사용해야 한다고 알려주고 있습니다. 해결 방
otrodevym.tistory.com
http 버전이 올라가면서 Uri 방식 사용
post.(url) 기존방법
post.(Uri.parse(url) 바뀐 방법