Code Monkey home page Code Monkey logo

starwars_flutter's Introduction

Starwars Flutter

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.)

IDE Setup

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).

Clean Architecture Boilerplate

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

Screenshots

Android

iOS

Packages Used

retrofit - Http Client for Api Calls

http

provider - Dependency Injection

shared_preferences - Shared Preferences

smooth_star_rating - Star rating package

hive - Persistence package

marquee - A Flutter widget that scrolls text infinitely

rxdart

Getting Started

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.

starwars_flutter's People

Contributors

andreas409 avatar elieomatuku avatar elieomatuku97 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.