flutter
도구를 이용하여Cros platform
프로젝트 작성Android
,IOS
,Windows
,Web
,MacOS
,Linux
운영체제에서 작동되늘 프로젝틀 한번의 코딩으로 작성할수 있다.
https://flutter.dev
에서flutter sdk
다운로드- 압축풀기 :
c:\dev\flutter
폴더에 압축풀기 시스템 환경변수 path
에flutter/bin
폴더 지정해 주기cmd
창에서flutter
명령 입력하여 확인하기vsCode
터미널 창에서flutter
명령 입력하여 확인하기
fluuter
검색하여flutter
, fluttere widget snapshot,
flutter files도구 설치하기
dart
검색하여dart lang.
팩 설치확인
flutter doctor
Android cmd-line toolchain
설치flutter doctor --android-licenses
dart pub cache repair
.dart pub cache clean
.
Flutter
프로젝트는vscode
에 생성하는 명령이 있다.vscode
를 사용하여 프로젝트를 생성하면 개별폴더로 프로젝트가 open 된다.cmd
,shell
명령으로 프로젝트를 생성한다- 생성하는 명령 :
flutter create --org=com.callor [project name]
flutter
도구 upgrade
flutter pub upgrade outdated
flutter pub upgrade --major-versisons
flutter clean
flutter get
- upgrade 과정에서 문제가 발생하는 경우 : 특히
flutter clean
에 많이 오류가 발생한다. flutter pub cache repair
를 실행하고flutter clean
를 실행프로젝트 폴더의
build폴더를 삭제하고
flutter clean` 를 실행
flutter create --org=com.callor hello -e
- 각 프로젝트 폴더에서 :
flutter pub get
실행하기 - 오류가 발생하면 :
flutter clean
실행 후flutter pub get