인프런 커뮤니티 질문&답변
flutter를 이용하여 모바일 앱 만들기
작성
·
253
0
마지막 강의 'flutter를 이용하여 모바일 앱 만들기' 중 3분 경의 코드 따라 작성해보았는데요.
작성한 코드
class MyApp extends StatelessWidget {
fetchMonitors() async {
var response = await http.get('생성한 URL');
print(response.body);
}
아래와 같은 오류 메세지가 나타납니다.
lib/main.dart:10:35: Error: The argument type 'String' can't be assigned to the parameter type 'Uri'.
- 'Uri' is from 'dart:core'.
이 문제는 어떻게 해결하면 좋을지 도움 주시면 감사하겠습니다.




