auto_route
AutoRoute는 선언형 라우팅 솔루션으로, 네비게이션에 필요한 모든 것이 자동으로 생성됩니다.
모델-뷰-뷰모델(MVVM) 아키텍처를 사용하여 Flutter 프로젝트 설정하기
AutoRoute는 선언형 라우팅 솔루션으로, 네비게이션에 필요한 모든 것이 자동으로 생성됩니다.
AutoRoute는 선언형 라우팅 솔루션으로, 네비게이션에 필요한 모든 것이 자동으로 생성됩니다.
retrofit.dart 는 source_gen 을 사용하고 Chopper 및 Retrofit 에서 영감을 받은 dio 클라이언트 생성기입니다.
retrofit generator는 source_gen을 사용하여 생성된 dio 클라이언트로, Chopper과 Retrofit에서 영감을 받았습니다.
테스트 가능하고 확장 가능하며 유지보수 가능한 Flutter 앱을 구축하기 위한 프레임워크
Injectable은 get_it용 편리한 코드 생성기입니다. Angular DI, Guice DI, inject.dart에서 영감을 받았습니다.
Injectable은 get_it용 편리한 코드 생성기입니다. Angular DI, Guice DI, inject.dart에서 영감을 받았습니다.
프리티 디오 로거는 네트워크 호출을 예쁘고 읽기 쉬운 형식으로 로깅하는 디오 인터셉터입니다.
{"sdk":"flutter"}^1.0.2^4.0.6^3.0.1+1^4.6.0^1.2.0-beta-1^7.2.0^1.5.3^2.3.15^4.2.1^1.0.2{"sdk":"flutter"}^2.0.0^4.0.3^2.2.0^6.3.1^1.5.4^4.2.1^5.3.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Model–View–ViewModel (MVVM) is a very established architectural pattern when it's come to software development. Here I have tried to put MVVM in simple example which will help you to implement in any project.
https://uploads.toptal.io/blog/image/127608/toptal-blog-image-1543413671794-80993a19fea97477524763c908b50a7a.png
This sample demonstrates how one can
Apart from the basic architecture setup, this sample also demonstrates
https://camo.githubusercontent.com/a5485a38e6af7aa1055807a47e1833fc9a35eb7b997940b26936dcffae760623/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f3737322f302a73664344456235373157442d374566502e6a7067
There are 3 main modules to help separate the code. They are Data, Domain, and Application.
Data contains Local Storage, APIs, Data objects (Request/Response object, DB objects), and the repository implementation.
Domain contains UseCases, Domain Objects/Models, and Repository Interfaces
Application contains UI, View Objects, Widgets, etc. Can be split into separate modules itself if needed. For example, we could have a module called Device handling things like camera, location, etc.
https://user-images.githubusercontent.com/19567934/183311532-5efde826-f8ef-48a7-8df5-a0ed1731a2a0.png
One can download the code in zip format or take checkout from the git repository.
You need to run build_runner command for code generation everytime when you make changes in your original file.