Flutter-Clean-Architecture-Example
Flutter 清潔架構範例
- 星標
- 114
- 分支
- 20
- 最近推送(UTC)
- 2025年2月2日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
Flutter Clean Architecture Example
About This Project
This repository is the companion code for my 5-part Medium article series titled "Flutter Clean Architecture." The series offers an extensive guide on applying clean architecture principles in Flutter projects. Each part focuses on a different layer of architecture, backed by practical examples from this repository.
Feel free to fork this repository and submit a pull request if you have suggestions or improvements.
Article Series Overview
Part 1: Introduction
- Introduction to the project and the fundamental concepts
- Why should we Use Clean Architecture in Flutter?
- Advantages of The Clean Architecture
- Read Part 1 on Medium
Part 2: The Domain Layer
- Insights into the core logic and business rules
- Usecases
- Read Part 2 on Medium
Part 3: The Data Layer
- Handling data and repository patterns
- Datasources
- Isar
- Read Part 3 on Medium
Part 4: The Presentation Layer
- Designing the UI and managing state
- BLoC Pattern
- Read Part 4 on Medium
Part 5: Testing Each Layer
- Implementing tests for robust and reliable code
- Unit Testing
- Read Part 5 on Medium
UI Design
https://github.com/enesakbal/Flutter-Clean-Architecture-Example/assets/60822023/bbe8f4e6-e460-47fc-9893-fa36881df65e
Set Up
- Clone Project
git clone https://github.com/enesakbal/Flutter-Clean-Architecture-Example.git
-
Sign up TMDB and don't forget to replace the
API_TOKENvalue in the .env file with your own. -
flutter run
Contact Me
enesakbal00@gmail.com
created by ea.
分類
使用的依賴
依賴清單 32 項
- auto_route
^8.1.4 - cached_network_image
^3.4.1 - dio
^5.8.0+1 - equatable
^2.0.7 - flex_color_scheme
^8.1.0 - flutter
{"sdk":"flutter"} - flutter_bloc
^9.0.0 - flutter_dotenv
^5.2.1 - flutter_gen
^5.8.0 - flutter_hooks
^0.20.5 - flutter_screenutil
^5.9.3 - flutter_svg
^2.0.17 - fpdart
^1.1.1 - get_it
^8.0.3 - hydrated_bloc
^10.0.0 - intl
^0.20.2 - isar
^3.1.0+1 - isar_flutter_libs
^3.1.0+1 - json_annotation
^4.9.0 - path_provider
^2.1.5 - pretty_dio_logger
^1.4.0 - shimmer
^3.0.0 - url_launcher
^6.3.1 - auto_route_generator開發依賴
^8.0.0 - bloc_test開發依賴
^10.0.0 - build_runner開發依賴
^2.4.13 - flutter_gen_runner開發依賴
^5.8.0 - flutter_lints開發依賴
^5.0.0 - flutter_test開發依賴
{"sdk":"flutter"} - isar_generator開發依賴
^3.1.0+1 - json_serializable開發依賴
^6.8.0 - mockito開發依賴
^5.4.4
所在榜單
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗