E-commerce App

A simple e-commerce application built with Flutter. This app fetches product data from an API and displays it in a user-friendly manner with proper navigation and state management using Provider.

Features

  • Product Listing Page: Displays a list of products fetched from the provided API.
  • Product Detail Page: Shows detailed information about a selected product, including name, image, price, and description.
  • Add to Cart: Includes an "Add to Cart" button (Shows a Snackbar message saying "Added to Cart").
  • Responsive UI: Ensures the application looks good on different screen sizes.

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/ecommerce_app.git
    cd ecommerce_app
  2. Install dependencies:

    flutter pub get
  3. Run the app:

    flutter run

ScreenShots

Screenshot_20240710_145858 Screenshot_20240710_150040

Project Structure

ecommerce_app/
├── lib/
│   ├── models/
│   │   └── product.dart         # Product model
│   ├── screens/
│   │   ├── product_listing_page.dart  # Product listing page
│   │   └── product_detail_page.dart   # Product detail page
│   ├── services/
│   │   └── api_service.dart     # API service to fetch product data
│   └── main.dart                # Main entry point of the application
└── pubspec.yaml                 # Project dependencies