GithubHelp home page GithubHelp logo

riverpod-example's Introduction

Riverpod and Flutter Hooks Example

Description

This project demonstrates how to use Riverpod and Flutter Hooks for state management in a Flutter application. It includes examples of fetching data with Dio, managing state with providers, and performing data mutations.

Features

  • Dio client setup for HTTP requests
  • Repository pattern for data management
  • Riverpod for state management
  • Flutter Hooks for functional component structure
  • Examples of fetching and mutating data

Installation

  1. Clone the repository:
    git clone https://github.com/gonciuu/Riverpod-Example.git
  2. Install dependencies:
    flutter pub get
  3. Run code generation:
    dart run build_runner build
  4. Run the app:
    flutter run

Usage

  • The project includes examples of fetching data from an API using Dio and Riverpod.
  • It also shows how to manage state and perform mutations using providers and state notifiers.

Learn More

For a detailed tutorial and explanation, read the full article on Medium.

riverpod-example's People

Contributors

gonciuu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.