강의

멘토링

커뮤니티

Inflearn Community Q&A

lyuhw110232046's profile image
lyuhw110232046

asked

Building Flutter apps based on GetX

Definition of constants

model, viewmodel

Resolved

Written on

·

139

0

파일이 엄청 많은데 model, view, viewmodel로 나눈다면 어떤 파일이 model이고 어떤 파일이 view에 해당하는건가요?

fluttergetx

Answer 1

0

Sirius B님의 프로필 이미지
Sirius B
Instructor

hellohallo님 안녕하세요.

Sirius B입니다.

문의해주셔서 감사합니다.

말씀하신 model, view, viewmodel을 현재 프로젝트 구조와 매핑해보면 다음과 같습니다.


  • model

    • dto 폴더 : 데이터 객체

    • dao 폴더 : 서버 통신 및 내부 DB에 접근하여 데이터 송수신

  • view

    • view 폴더 : 화면 레이아웃

  • viewmodel

    • controller 폴더 : 비즈니스 로직 (화면 및 데이터 갱신 등의 역할)


  • 참고로 작업 흐름 및 주요 역할은 다음과 같습니다.

     

    • view controller dao (dto)

    • 화면 표시 화면 및 데이터 갱신 데이터 송수신

 

추가 질문 있으시면 다시 문의 남겨주세요.

감사합니다 :)

lyuhw110232046's profile image
lyuhw110232046

asked

Ask a question