Immadominion / HNG-TASK-TWO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HNG TASK 2

This is my assignment submission for the HNG stage two task. I was tasked to create a simple shopping app that has two items on the dashboard and displays items statically.

Features

  • Display a static list of products.
  • Add and remove items from the checkout list.
  • Navigate to an order successful screen from the checkout screen.
  • Built using only native Flutter components (no third-party dependencies).

Screenshots

Products Screen Checkout Screen Checkout Screen
Products Screen Dark Checkout Screen

Setup Instructions

Prerequisites

  • Flutter installed on your machine. Follow the instructions here to install Flutter.

Steps

  1. Clone the Repository

    git clone https://github.com/immadominion/simple_shopping_app.git
    cd simple_shopping_app
    
  2. Get Flutter Packages

    flutter pub get
    
  3. Run the App

    flutter run

Appetize Demo

  • You can view a live demo of the app on Appetize.io ==> (here)

Project Structure

lib/
|- core/
|   |- constants/
|   |   |- enum.dart
|- data/
|   |- model/
|   |   |- product_model.dart
|   |   |- profile.json
|   |- controllers/
|   |   |- base_controller.dart
|   |   |- dashboard_controller.dart
|   |   |- products_controller.dart
|   |   |- switch_controller.dart
|   |   |- theme_notifier.dart
|   |- services/
|   |   |- dio_mixin.dart
|   |   |- error_service.dart
|   |   |- product_services.dart
|- presentation/
|   |- screens/
|   |    |   |- home.dart
|   |    |   |- profile.dart
|   |- widgets/
|    |   |   |- home/
|    |   |   |   |- card_widget.dart
|    |   |   |   |- home_description.dart
|    |   |   |   |- home_image.dart
|    |   |   |- profile/
|    |   |   |   |- profile_stat.dart
|    |   |- my_fade_route.dart
|    |   |- shimmer.dart
|- utils/
|   |- locator.dart
|- home.dart
|- main.dart

About


Languages

Language:Dart 46.6%Language:C++ 25.0%Language:CMake 20.4%Language:Ruby 2.9%Language:Swift 2.0%Language:C 1.5%Language:HTML 1.3%Language:Kotlin 0.1%Language:Objective-C 0.0%