auto_route
AutoRoute 是一種宣告式路由解決方案,所有導航所需的內容都會自動為您產生。
設定您的 Flutter 專案以使用模型-視圖-視 ViewModel (MVVM) 架構
以下為英文專案原文快照,最新內容請造訪 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.

This sample demonstrates how one can
Apart from the basic architecture setup, this sample also demonstrates
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.

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.
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 的啟發。
Pretty Dio Logger 是一個 Dio 擬截器,以美觀且易於閱讀的格式記錄網路呼叫。
依賴清單 19 項
{"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先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗