Skip to content

[Flutter SDK V.1] - 🎬 MovieApp is a Flutter application built to demonstrate the use of modern development tools with best practices implementation like Modularization, BLoC, Dependency Injection, Dynamic Theme, Cache, Shimmer, Testing, Flavor, CI/CD, etc.

License

Notifications You must be signed in to change notification settings

rrifafauzikomara/MovieApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Movie App

GitHub stars GitHub forks GitHub watchers

Codemagic build status GitHub license platform Open Source Love

Get it on Google Play

Features

  • Switch Theme (Dark and Light) by App πŸ”₯
  • Movies
  • Tv Show
  • Discover
  • Detail Movies & Tv Show (with Trailer and Crew)
  • Booking Ticket Simulation (I modified from the original code 😁)

πŸ“Έ Example iOS

                                                  

πŸ“Έ Example Android

                                                  

Quick start

This is a normal flutter app. You should follow the instructions in the official documentation. This project uses BLoC (business logic component) to separate the business logic with UI itself. It's recommended to do self-study about it before jumping into the project here. And also on this project uses Modularization approach to separate each feature (core, shared, ui modules). You can do self-study about it in here.

Modularization Structure πŸ”₯

# Root Project
.
|
β”œβ”€β”€ lib                        # Name of module (default from Flutter).
β”‚   β”œβ”€β”€ launcher               # Main Application.
β”‚   └── ui                     # Activity/View layer.
|
└── libraries                  # Name of directory.
    β”œβ”€β”€ core                   # Name of module.
    β”‚   β”œβ”€β”€ bloc               # Business logic component.
    β”‚   β”œβ”€β”€ di                 # Dependency injection.
    β”‚   β”œβ”€β”€ local              # Local data handlers.
    β”‚   β”œβ”€β”€ network            # Remote data handlers.
    β”‚   └── repository         # Repository data handlers.
    |
    β”œβ”€β”€ dependencies           # Name of module (Handle dependency version updates).
    |
    └── shared                 # Name of module.
        β”œβ”€β”€ common             # Common shared.
        └── widget             # Custom widget which can be used repeatedly.

Built With πŸ› 

Todo

  • Add Lint
  • Add Favorite Movie and Tv Show using Moor
  • Reminder with Notification
  • Play Trailer with Full Screen
  • Re-write Integration Testing (UI Test) because of Redesign UI
  • Unit Testing (Mockito with BLoC)
  • Add Fastlane
  • Add CI to automatically publish to Firebase App Distribution

How to run the App

  1. Clone this project.
  2. Open with your favorite tools editor.
  3. Run Pub get on each module sequentially starting from dependencies, core, shared, and your root project to generated pubspec.lock file.
  4. Add your API_KEY into api_constant.dart file.
  5. Generated *.g.dart file in core module. But before you running that, make sure go to core module first using cd command. For example cd libraries and then cd core. Then you can run this command: flutter packages pub run build_runner build --delete-conflicting-outputs.
  6. Run the App using this or this. Enjoy your App!.

Run the App using command prompt

Development

flutter run --flavor development --target=lib/launcher/main-dev.dart

Production

flutter run --flavor production --target=lib/launcher/main-prod.dart

Run the App using Run

Tutor1
Tutor2
Tutor3

How to run the Test

Integration Testing (will be modified, for now it's not working)

flutter drive --target=test_driver/app.dart --flavor development

Author

  • R Rifa Fauzi Komara

Don't forget to follow me, fork and give me a ⭐

License

MIT License

Copyright (c) [2020] [R Rifa Fauzi Komara]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

[Flutter SDK V.1] - 🎬 MovieApp is a Flutter application built to demonstrate the use of modern development tools with best practices implementation like Modularization, BLoC, Dependency Injection, Dynamic Theme, Cache, Shimmer, Testing, Flavor, CI/CD, etc.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages