Molix is a Flutter app that shows the personalised and popular movies. You can use this app accross both mobile platforms i.e iOS and android. App supports both light and dark theme, will add more attractive themes in the future. We also plan to add web and desktop support in the future.
- Flutter
- Android Studio or Visual Studio Code
- Git
- Xcode (MacOS only)
- Clone the repository
- Open the project in Android Studio or Visual Studio Code
- Run
flutter pub get
to install dependencies - Run
flutter run --flavor dev -t lib/main_dev.dart
to run the app in development mode - Run
flutter run --flavor prod -t lib/main_prod.dart
to run the app in production mode - Run
flutter build apk --flavor dev -t lib/main_dev.dart
to build the app in development mode - Run
flutter build apk --flavor prod -t lib/main_prod.dart
to build the app in production mode
- All the moddule are contained in the
features
directory inside thelib
directory - Each module has its own
bloc
,views
andrepository
directory - The
bloc
directory contains all the blocs related to that module - The
views
directory contains all the views related to that module - The
repository
directory contains all the repositories and models related to that module
- Flavors
- Unit tests
- Widget tests
- BLoC pattern
- Theme management
Login Screen | Home Screen (dark) | Home Screen (light) | Search | Downloads | Profile |
---|---|---|---|---|---|
App is using Hydrated Bloc to store movies data in local storage. Hydrated bloc saves data in toJson
method of MoviesBLoc
. It reads data from the local storage in fromJson
method of the MoviesBloc