MVVM-Riverpod 电影应用
一个Flutter项目,演示了在实际应用中使用MVVM架构和Riverpod状态管理,帮助开发者理解如何构建可扩展且可维护的Flutter应用。
- 星标
- 0
- 复刻
- 0
- 最近推送(UTC)
- 2026年9月27日
- 项目状态
- 未归档
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
🎬 MVVM-Riverpod Movies App

A Flutter project demonstrating the MVVM architecture and Riverpod state management in a real-world application, to help developers understand how to build scalable and maintainable Flutter applications.
About
This is a Movies App built with clean architectural principles and serves as a practical reference for Flutter developers. It teaches you how to separate concerns across UI, business logic, and data layers using the MVVM architecture and manage state and data efficiently using Riverpod state management.
Features
| Feature | Description |
|---|---|
| 🏗️ MVVM Architecture | Clean separation of Model, View, and ViewModel layers |
| 💧 Riverpod State Management | Efficient and scalable state management throughout the app |
| 🎬 Movie Data | Display and manage movie listings |
| 🧩 Clean Architecture | Separation between UI, business logic, and data layers |
| 📁 Organized Structure | Well-structured project for easy navigation and scalability |
What You Will Learn
By exploring this source code, you will understand:
- ✅ How to structure a Flutter app using MVVM architecture.
- ✅ How to use Riverpod state management.
- ✅ How ViewModels manage application state and business logic.
- ✅ How to keep UI code clean and maintainable.
- ✅ How to implement the Repository for clean data access.
- ✅ How to create different types of Models.
- ✅ How to implement different conversion techniques.
- ✅ How to handle loading and error states properly.
- ✅ Best practices for scalable and enterprise-grade Flutter applications.
Getting Started
Prerequisites
- Flutter SDK installed
- An IDE such as VS Code or Android Studio
Installation
-
Clone the repository
git clone <repository-url> -
Navigate to the project directory
cd <project-folder> -
Install dependencies
flutter pub get -
Run the application
flutter run
Support
If you find this project helpful, please consider giving it a star ⭐
使用的依赖
依赖清单 10 项
- flutter
{"sdk":"flutter"} - cupertino_icons
^1.0.8 - cached_network_image
^3.4.1 - get_it
^9.2.1 - flutter_dotenv
^6.0.0 - shared_preferences
^2.5.5 - http
^1.6.0 - flutter_riverpod
^3.3.1 - flutter_test开发依赖
{"sdk":"flutter"} - flutter_lints开发依赖
^6.0.0
App 分类
如何选择适合项目的代码仓?
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
- 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
- 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
- 使用前在 GitHub 核对 README、许可证与 Issues。
来源与维护
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗