Skip to content

A simple Flutter-based shopping mall application with two pages: one to display products fetched from a dummy JSON API and another to manage user cart items stored locally with the Drift database. Uses the BloC pattern for state management.

License

Notifications You must be signed in to change notification settings

RashminDungrani/flutter-shopping-cart

Repository files navigation

Shopping Mall Application

This is a simple shopping mall application built with Flutter. The app has only 2 pages, the first page displays products fetched from a dummy JSON API, and the second page is the cart page where users can see added products and can also remove them. The app uses the drift database for storing cart items into the local database, and the BloC pattern is used as the state management library.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Screenshots


Prerequisites

To run this project, you need to have Flutter installed on your local machine. Follow the installation instructions here.

Installing

  1. Clone this repository on your local machine using the following command:
    git clone https://github.com/RashminDungrani/flutter-shopping-cart
  2. Navigate to the project directory:
    cd flutter-shopping-cart
  3. Install the dependencies using the following command:
    flutter pub get
  4. Run the app on your preferred emulator or device using the following command:
    flutter run

Features

  • The shopping mall application has the following features:
    • Fetch products from a dummy JSON API and display them on the Products page.
    • Add and remove products to/from the cart on the Cart page.
    • Store cart items into the local database using the drift database.
    • Use the BloC pattern as the state management library.

Built With

  • Flutter - Google's UI toolkit for building natively compiled applications for mobile, web, and desktop from a single codebase.
  • drift - A high-performance, easy-to-use SQLite database library for Flutter.
  • BloC pattern - A predictable state management library that helps implement the Business Logic Component pattern.

Authors

Rashmin Dungrani - Initial work - Rashmin

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A simple Flutter-based shopping mall application with two pages: one to display products fetched from a dummy JSON API and another to manage user cart items stored locally with the Drift database. Uses the BloC pattern for state management.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published