본문 바로가기
Flutter

플러터 프로젝트 생성 flutter create

by 개발자언니 2025. 2. 21.
반응형

플러터  설치라는 고개를 넘었으니 플러터 프로젝트를 만들어 보겠습니다.

 

Flutter 프로젝트 생성

터미널에서 아래 명령어를 실행하면 새로운 Flutter 앱을 만들 수 있습니다.

$ flutter create my_app

 

프로젝트 폴더로 이동

$ cd my_app

 

iOS 시뮬레이터 열기

$ open -a Simulator

 

앱 실행하기

$ flutter run
flutter run       
Launching lib/main.dart on iPhone 8 in debug mode...
Running Xcode build...                                                  
 └─Compiling, linking and signing...                        37.8s
Xcode build done.                                           55.7s
Syncing files to device iPhone 8...                                 55ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

A Dart VM Service on iPhone 8 is available at: http://127.0.0.1:63274/DDl7X8NQUFQ=/
The Flutter DevTools debugger and profiler on iPhone 8 is available at:
http://127.0.0.1:9100?uri=http://127.0.0.1:63274/DDl7X8NQUFQ=/

 

방금 생성한 앱이 잘 실행 됩니다.

플러터 앱 생성

 

플러터 프로젝트 생성 옵션

Flutter 프로젝트를 생성할 때 다양한 옵션을 사용할 수 있습니다.

옵션 설명
--org 패키지명 지정
--platforms=android,ios,web 특정 플랫폼만 포함
--template=app 일반 앱 템플릿 (기본값)
--template=package 패키지(라이브러리) 프로젝트 생성
--template=plugin 플러그인 프로젝트 생성

 

$ flutter create --org com.mycompany.project --platforms=android,ios project
반응형