Skip to content

This project showcases Clean Architecture in Flutter, utilizing the MVVM design pattern. It uses Unspash API to show a list of images in a tiled format.

Notifications You must be signed in to change notification settings

Mariovc/flutter_demo

Repository files navigation

Flutter Demo App

Introduction

This project showcases Clean Architecture in Flutter, utilizing the MVVM design pattern.

architecture

It uses Unspash API to show a list of images in a tiled format. The home page have a search bar that the user can type into to search for images. Search results are presented using paging and infinite scroll. Tapping an image navigates to a detail screen showing image details.

Screenshots

demo

Features

Environment

The application has two environments and each one has its own configuration file:

  • dev: .env/dev.json
  • prod: .env/prod.json

Inside each one, you can find sensitive information that shouldn't be committed to this repository. However, I have included it to provide an easy way to launch this project. Please, replace the API key with your own Unsplash API key.

Run and build

To run the application in each environment, you can use the following commands:

  • dev: flutter run --dart-define-from-file=.env/dev.json
  • prod: flutter run --dart-define-from-file=.env/prod.json

Also, you can configure your IDE to run the application in each environment.

About

This project showcases Clean Architecture in Flutter, utilizing the MVVM design pattern. It uses Unspash API to show a list of images in a tiled format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published