Skip to content

A basic app demonstrating the use of Riverpod with Annotations

Notifications You must be signed in to change notification settings

ramirezsebas/products_app

Repository files navigation

Flutter Products Riverpod App

This is a Flutter app that demonstrates the usage of Riverpod for state management, Dio for HTTP requests, and various features such as fetching random user data, listing products, pagination, adding favorites, and showing product details.

Features

  • Fetches random user data.
  • Lists products with pagination.
  • Allows users to add products to favorites.
  • Shows more details of a product.

Requirements

  • Flutter SDK 3.19.2

How to Run

  1. Clone this repository:

    git clone [email protected]:ramirezsebas/products_app.git
  2. Navigate to the project directory:

    cd products_app
  3. Install dependencies:

    <!-- In case you have fvm installed -->
    fvm use
    flutter pub get
  4. Run the app on a connected device or emulator:

    flutter run --flavor development --target lib/main_development.dart

Obs:

  • Created a makefile to make it easier to generate the code(Riverpod).

    make gen
  • The app uses the User API to fetch random user data.

  • The app uses the Products API to fetch products data.

Screenshots

image

image

image

image

image

image

image

Videos

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-04-04.at.21.04.04.mp4

About

A basic app demonstrating the use of Riverpod with Annotations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published