-
[Flutter] 플러터 설치하기 _MacDart/Flutter 2023. 2. 14. 02:50728x90반응형
Flutter - Build apps for any screen
Flutter transforms the entire app development process. Build, test, and deploy beautiful mobile, web, desktop, and embedded apps from a single codebase.
flutter.dev
Flutter 설치는 크게 두 단계로 나뉜다.
1. Flutter SDK 설치
2. 시뮬레이터 설치
1. Flutter SDK 설치
zip파일 다운받고 path 설정 등이 번거롭고 귀찮을 때는 콘솔을 이용해 설치하는 방법도 있다.
Window의 경우 chocolatey를 사용하지만 나는 맥을 사용하기 때문에 homebrew를 사용했다.
homebrew로 flutter 설치하기
flutter
Homebrew’s package index
formulae.brew.sh
$ brew install --cask flutter
이 명령어를 이용해 flutter SDK를 설치해준다.
그리고 flutter 명령어 입력을 통해 잘 설치되었는지 확인한다.
본인은 dart를 먼저 공부하느라 dart가 이미 설치되어 있어서 에러가 떠서 dart를 삭제해주고 재설치했다.
Flutter Doctor
$ flutter doctor
콘솔에서 Flutter 설치 상태에 대해 알려주고 필요한 항목들을 알려주는 tool이다.
flutter doctor를 입력하면 아래와 같이 현재 환경에 대한 진단을 내려준다. 환경 설치에 어떤 항목들이 누락되었는지 알려주기 때문에 flutter doctor 명령어를 입력했을 때 오류가 발생하지 않으면 올바르게 세팅된 것이다.
2. 시뮬레이터 설치
시뮬레이터는 말그대로 자기가 개발하고 싶은 플랫폼을 선택해서 셋업하면 된다.
LIST