Skip to content

ahmadjz/Shop-App-Riverpod

Repository files navigation

Shopping App with Flutter

logo

This Shopping App is built using Flutter and allows users to browse products, add items to their cart, and manage their profiles. Users can also access the products page as guests with limited features. The application adheres to principles of Clean Architecture, with Riverpod for state management.

Project Architecture

The project is inspired by Clean Architecture principles and focuses on the separation of concerns between two primary layers:

  • Presentation Layer (UI) - Contains the UI code and its related classes.
  • Data Layer - Contains the implementation of data sources, repositories, and models.

Riverpod is used to manage states in the Presentation Layer, effectively separating the UI code from the business logic.

Libraries

  • Riverpod for state management
  • Get_it for dependency injection
  • Fluro for navigation
  • Dio, Freezed, and Retrofit generator for API and data modeling
  • Easy_localization for localization
  • Flutter_screenutil for responsive UI
  • SharedPreferences for local storage
  • Lottie for animations

Main Screens

  1. Auth Screen: This screen enables users to log in with their email and password or register. Input validations are performed for email and password, displaying error messages for invalid entries. Once logged in, user information is saved in SharedPreferences, facilitating direct navigation to the Home screen on subsequent app launches. Users can also enter the application as guests with limited features.
  2. Home Screen: Showcases products with pagination.
  3. Product Details Page: Presents comprehensive product information and allows users to add products to their cart with a specified quantity.
  4. Cart Modal: Displays complete cart details, including total price, item count, and all products in the cart. Users can also remove products from the cart as desired.

Videos

Mobile Screen

APK

apk

Flutter Environment Check

Before running the app, ensure that your development environment meets the required dependencies and configurations by running flutter doctor. Here's an example screenshot of a flutter doctor output: Screenshot from 2023-03-21 16-05-30

If you encounter any issues or missing dependencies, please refer to the Flutter documentation for guidance on setting up your development environment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published