Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getx-Quick-Starter

GetX MVVM + Binding 구조로 잡아둔 Flutter 스타터.

폴더 구조

lib/
├── main.dart
└── app/
    ├── features/         # 기능별 모듈
    │   └── home/
    │       ├── bindings/
    │       ├── controllers/
    │       └── views/
    ├── routes/           # AppPages, Routes
    ├── constants/        # 전역 공통 상수
    ├── local_storage/    # 로컬 저장소
    ├── services/         # 앱 전역 서비스
    └── translations/     # 다국어 (ko_KR, en_US)

기능 모듈 추가

  1. features/<기능>/{bindings,controllers,views}/ 생성
  2. <기능>BindingGet.lazyPut<XController>(() => XController())
  3. <기능>Controller extends GetxController
  4. <기능>View extends GetView<XController>
  5. routes/app_routes.dart 에 상수 추가 → app_pages.dartGetPage 등록

전역 서비스는 기능 바인딩이 아니라 main.dart 에서 Get.put(..., permanent: true) 로 등록한다.

시작하기

flutter pub get
flutter run

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages