Flutter Movie is built with Riverpod, Clean Architecture, and GoRouter that showcases movies fetched from TMDB API. It includes now playing, popular, top-rated, and upcoming movies with support for pagination, search, and detailed view.
- π Now Playing, Popular, Top Rated & Upcoming movie sections
- π Movie Detail Page
- π― Recommended Movies
- π Search Movies
- π₯ Artist List
- π§Ύ Artist Detail Page
- π Pagination (infinite scroll)
- π Bottom Navigation
- π§ Declarative Routing with GoRouter
- π§± Clean Architecture (Presentation / Domain / Data)
- π§ͺ Riverpod State Management
- π Network layer using Dio with Logging
- π Smooth UX with loading indicators
Fig. Clean Architecture
flutter_movie_clean_architecture/
βββ lib/
β βββ core/
β β βββ config/
β β β βββ app_constant.dart
β β βββ network/
β β β βββ dio_provider.dart
β β βββ utils/
β β βββ utils.dart
β βββ features/
β β βββ movie/
β β βββ data/
β β β βββ datasources/
β β β β βββ movie_remote_data_source.dart
β β β βββ models/
β β β β βββ movie_detail_model.dart
β β β β βββ movie_model.dart
β β β β βββ credit_model.dart
β β β βββ repositories/
β β β βββ movie_repository_impl.dart
β β βββ domain/
β β β βββ entities/
β β β β βββ movie.dart
β β β β βββ movie_detail.dart
β β β β βββ credit.dart
β β β β βββ artist_detail.dart
β β β βββ repositories/
β β β β βββ movie_repository.dart
β β β βββ usecases/
β β β βββ get_all_artist_movies.dart
β β β βββ get_movie_detail.dart
β β β βββ get_movie_credits.dart
β β β βββ get_movie_search.dart
β β β βββ get_now_playing.dart
β β β βββ get_popular.dart
β β β βββ get_top_rated.dart
β β β βββ get_up_coming.dart
β β β βββ get_recommended_movie.dart
β β β βββ get_artist_detail.dart
β β βββ presentation/
β β βββ pages/
β β β βββ artist_detail_page.dart
β β β βββ artist_list_page.dart
β β β βββ movie_detail_page.dart
β β β βββ movie_main_page.dart
β β β βββ now_playing_page.dart
β β β βββ popular_page.dart
β β β βββ top_rated_page.dart
β β β βββ up_coming_page.dart
β β βββ providers/
β β β βββ movie_provider.dart
β β βββ widgets/
β β βββ movie_card.dart
β β βββ movie_search.dart
β βββ routing/
β β βββ app_router.dart
β βββ main.dart
βββ ios/
βββ screen_shots/
βββ test/
βββ .flutter-plugins
βββ .flutter-plugins-dependencies
βββ .gitignore
βββ .metadata
βββ analysis_options.yaml
βββ flutter_movie_clean_architecture.iml
git clone [email protected]:piashcse/flutter-movie-clean-architecture.git
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
flutter run
- Flutter - Googleβs UI toolkit for building natively compiled applications for mobile, web, and desktop from a single codebase.
- Riverpod - A simple, composable, and testable state management solution for Flutter.
- GoRouter - Declarative routing package for Flutter, designed to work seamlessly with state management and deep linking.
- Dio - A powerful HTTP client for Dart, supporting interceptors, global configuration, FormData, request cancellation, and more.
- Freezed - A code generator for immutable classes that helps with union types/pattern matching in Dart.
- JsonSerializable - Generates code for converting between Dart objects and JSON, making serialization easy.
- Logger / DioLogger - Easy and pretty logging package for debugging; use
DioLogger
to log Dio HTTP requests and responses.
Mehedi Hassan Piash
Copyright 2025 piashcse (Mehedi Hassan Piash)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.