Code Monkey home page Code Monkey logo

food_delivery_app_case_study's Introduction

Mobile Code Challenge Flutter Solution

made with dart

The task is to implement a food delivery app to let the user browse meals and add meals to his favourite page and to add meals to cart.

Screenshots

What has been implemented

The basic features that are fulfilled include:

  • As a User I should be able to browse categories.
  • As a User I should be able to browse click on a category from categories screen and show me the category meals.
  • As a User I should be able to save any meal into my favourite section.
  • As a User I should be able to add any meal into my cart section.
  • As a User I should be able to delete any meal from my cart section.
  • As a User I should be able to delete any meal from my favourite section.

Folder Structure

.
├── core
│   ├── constants
│   ├── models
│   ├── data
│   ├── domain
│   └── view_models
├── ui
│   ├── utils
│   ├── views
│   └── widgets
└── config

Folder Structure explanation

The lib folder is divided into three folders; core, ui, and config. Core contains all the files associated with the logic. Ui contains all the files associated with the ui. Config is for configurations.

  • core

    • constants
      • Holds app constants and enums and routes.
    • models
      • Contains all the plain data models.
    • data
      • This layer interacts directly with an API (REST API or a local database).
    • domain
      • This layer transforms or manipulates the data that the API or local database provides.
    • view_models
      • This layer manages the state (Business logic layer). contains a view model for each view which will act as an interface between a view and domains.
  • ui

    • utils
      • Contains functions or constants that are used in multiple other UI files.
    • views
      • Contains the main app screens.
    • widgets
      • Contains widget files that are too big to keep in the view files.
      • Usually contains shared widgets that are classes extending stateless widgets.
  • config

    • configuration files for routing, providers, locators and functions (Usually contains shared functions that are classes use them)

What could be improved?

  1. Writing Unit tests.
  2. Add meal details screen.
  3. improve cart screen by adding quantity number for each meal and increase and decrease buttons for quantity number.
  4. Add dark theme to the app.

Plugins used

  • provider: ^6.0.3
  • http: ^0.13.4
  • cached_network_image: ^3.2.1
  • shared_preferences: ^2.0.15
  • equatable: ^2.0.0
  • get_it: ^7.2.0

How to run

  • Run flutter packages get to download pubspec dependencies.
  • Run flutter clean for most of the first-run errors you may face.
  • Run flutter run to try it live on a running emulator or USB connected device.
  • You can target a specific device to run by running flutter devices and getting the id and running flutter run -d <device_id>.
  • Run flutter build apk to generate the APK file.
  • Run flutter build ios to package the iOS app.

food_delivery_app_case_study's People

Contributors

abdullah-khudher avatar

Watchers

 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.