Skip to content

alvaroarmijos/rick_and_morty_app

Repository files navigation

Rick and Morty App

App that lists all Characters The Rick and Morty API. This app is built with Flutter, focused on Android design.

For this poject Clean Architecture was choosen. Beacause keep the code clean and tested are the two most important development practices. Even state management patterns like BLoC are not sufficient in themselves to allow for easily extendable codebase. If you want to learn more about this, you can read my article here.

For this we should all strive to separate code into independent layers and depend on abstractions instead of concrete implementations.

Every "feature" of the app, like home, is divided into 3 layers - presentation, domain and data. This app have only one feature.

The presentation layer contain Pages, Widgets and Bloc. The presentation layer contain Entities, Repositories and Usecases. It should be totally independent of every other layer. The data layer consists of a Repository implementation and data sources - this is usually for getting remote (API) data.

Starting 🚀

These instructions will allow you to obtain a copy of the application for testing.

Getting Started

To build and run this project:

  1. Get Flutter here if you don't already have it
  2. Clone this repository git clone https://github.com/alvaroarmijos/rick_and_morty_app.git
  3. cd into the repo folder cd rick_and_morty_app
  4. flutter pub get
  5. run flutter run -android to run the app.

Just to ensure that the app works perfectly, add the following permission in AndroidManifest.xml file:

<uses-permission android:name="android.permission.INTERNET" />

You also need compile for Android for proper operation.

Running the example code

This sample requires Flutter 3.0.1.

Requirements 📋

You need these packages for the application to work

Built with 🛠️

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published