A Flutter application that allows Star Wars fans to browse the information provided by the free Star Wars API SWAPI. This Application queries the data from the API then caches it using hive then display it to the user, the Application makes use of the BLoC pattern and has light/dark mode features. (Note: This project was started with the intention of learning flutter & clean architecture, so some of the practices used here may not be best practices and feedbacks are more than welcome.)
This project contains build flavors dev
, beta
prod
. In order to adapt the flutter build system run configurations were added for Visual Studio Code and for Android Studio. For Visual Studio Code duplicate the files located in .vscode
and remove the .default
from them, ie the new files should be launch.json
and tasks.json
. For Android Studio duplicate the files located in .idea/runConfigurations/
and remove the .default
from them, ie the new files should be Dev_Debug.xml
, Dev_Release.xml
, Beta_Debug.xml
, Beta_Release.xml
,Prod_Debug.xml
and Prod_Release.xml
(You might also have a main_dart.xml
, this is the default run configuration the IDE generates).
This Application makes use of clean Architecture, hence the project is divided into the following packages:
- Cache
- Data
- Domain
- Remote
- Presentation
- UI
For more details on Clean Architecture, check out the following links:
https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html
https://github.com/LostInIreland/Flutter-Clean-Architecture
https://github.com/bufferapp/android-clean-architecture-boilerplate
retrofit - Http Client for Api Calls
provider - Dependency Injection
shared_preferences - Shared Preferences
smooth_star_rating - Star rating package
hive - Persistence package
marquee - A Flutter widget that scrolls text infinitely
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.