Movies-App-Clean-Architectures-
使用 Clean Architecture、BLoC、get_it 和 dartz 構建的 Flutter 電影應用,使用 TMDB API。
- 星標
- 119
- 分支
- 23
- 最近推送(UTC)
- 2026年9月27日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
Movies App — Flutter Clean Architecture
A Flutter movies app built with Clean Architecture and BLoC, using the TMDB API: now playing, popular and top-rated lists, movie details and recommendations.
Architecture
lib/
├── core/ # errors, network constants, service locator, base use case
└── movies/
├── data/ # remote data source (Dio), models, repository implementation
├── domain/ # entities, repository contract, use cases
└── presentation/ # BLoCs, screens, components
- Domain holds the entities, the repository contract and one use case per action.
- Data implements the repository with a Dio remote data source and returns
Either<Failure, T>(dartz). - Presentation uses
flutter_bloc; dependencies are wired withget_it.
Run
The app needs your own TMDB API key (free from your TMDB account settings). It is read at build time — no key is stored in the repository:
flutter pub get
flutter run --dart-define=TMDB_API_KEY=<your_tmdb_api_key>
Author
Usama Elgendy — usamaelgendy.com
語言DartHTMLRubySwiftKotlinObjective-C
分類
使用的依賴
依賴清單 14 項
- flutter
{"sdk":"flutter"} - cupertino_icons
^1.0.8 - equatable
^2.0.7 - dio
^5.7.0 - dartz
^0.10.1 - flutter_bloc
^8.1.6 - get_it
^8.0.2 - animate_do
^3.3.4 - cached_network_image
^3.4.1 - carousel_slider
^5.0.0 - google_fonts
^6.2.1 - shimmer
^3.0.0 - flutter_test開發依賴
{"sdk":"flutter"} - flutter_lints開發依賴
^5.0.0
所在榜單
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗