Caching with flutter riverpod and looking into future providers. Example to demonstrate stale while revalidate pattern.

Overview

FLUTTER SWR EXAMPLE

Test stale-while-revalidate pattern with riverpod. Look; query_provider package

  • Backend calls are made with ghibli-api
  • Tested Provider.family to check if state are persisted in memory.

Screens

Main Screen Movie Screen
main.png movie.png

Checklist

  • Riverpod setup with backend calls.
  • Cache the service returned response.
  • Add a way to invalidate and refetch the data.
You might also like...

Super easy mood tracking app to demonstrate use of the Firebase Local Emulator Suite

Super easy mood tracking app to demonstrate use of the Firebase Local Emulator Suite

Mood Tracker Example App in Flutter This is a simple example app showing how to use Cloud Functions and the Firebase Local Emulator inside a Flutter a

Oct 14, 2022

A Flutter package for building custom skeleton widgets to mimic the page's layout while loading.

A Flutter package for building custom skeleton widgets to mimic the page's layout while loading.

Skeletons A Flutter package for building custom skeleton widgets to mimic the page's layout while loading. Examples Items ListView (Default) ListView

Dec 17, 2022

This is an app created by me while undertaking an android app development in flutter course on Udemy.

Expense Planner App A Flutter project created by Mithilesh Ghadge in a Fluttter Android app development course on Udemy. Create a new Flutter project

Oct 14, 2021

Beginner level chat app I built while learning Flutter

Beginner level chat app I built while learning Flutter

Chat App Chat with your friends, family, and anyone else you want to chat with! Live Coding Video on YouTube (Part 1) Live Coding Video on YouTube (Pa

Aug 4, 2021

Weather App built in Flutter and Riverpod state management

Weather App built in Flutter and Riverpod state management

๐Ÿ“ˆ Weather App built with Riverpod This is a weather app built using Riverpod as it's State Management. This project is an attempt to rewrite the Weat

Dec 7, 2022

Rest API Movie Application built using Flutter and Riverpod

Rest API Movie Application built using Flutter and Riverpod

Flickd Flutter Application Flickd Movie Application Flutter Flutter allows you to build beautiful native apps on iOS and Android Platforms from a sing

Dec 5, 2022

Managing flutter navigation with riverpod.

Navigation for Riverpod Managing Flutter navigation with riverpod. Usage Bootstrap Replace your root ProviderScope with a RiverpodNavigation widget wi

Sep 5, 2022

A playground for me to learn the Riverpod state management library in Flutter.

clothes_shop A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if

Oct 25, 2021

Todo App with Flutter + CleanArchitecture + sqflite + riverpod + state_norifier + freezed!

Todo App with Flutter + CleanArchitecture + sqflite + riverpod + state_norifier + freezed!

CleanArchitectureTodoAppTrainingWithFlutter Flutter + CleanArchitecture + sqflite + riverpod + state_notifier + freezed! Motivation I wanted to practi

Dec 16, 2022
Owner
Dipesh Dulal
Programming is fun. ๐Ÿš€
Dipesh Dulal
Implementing Firebase Authentication with Riverpod following Flutter Domain Driven Development pattern

firebase_auth_flutter_ddd Firebase authentication example with Hooks Riverpod and Freezed following Flutter DDD architecture Getting Started This proj

Python Hub 42 Jan 8, 2023
An example of how to mock state for testing widgets when using riverpod StateNotifierProvider

Testing Riverpod StateNotifierProvider An example of how to mock state for testing widgets when using riverpod StateNotifierProvider. These tests work

Matthew Rideout 15 Dec 13, 2022
A package that lets you include a cool, nice looking and validated Password TextFormField in your app to enhance user experience. The package is fully & easily modifiable.

A package that lets you include a cool, nice looking and validated Password TextFormField in your app to enhance user experience. The package is fully

Muhammad Hamza 21 Jan 1, 2023
ghiNote is a quick note application with a good-looking interface and simple operation.

ghi_note ghiNote is a quick note application with a good-looking interface and simple operation. Getting Started This project is a starting point for

Ngo Thanh Son 0 Dec 15, 2021
story_designer is created to help developers out there who are looking for implementing Instagram like stories editor.

story_designer A package for creating instagram like story, you can use this package to edit images and make it story ready by adding other contents o

Gulshan Yadav 19 Nov 2, 2022
A simple app to demonstrate a testable, maintainable, and scalable architecture for flutter. flutter_bloc, hive, and REST API are some of the tech stacks used in this project.

last_fm A simple app to demonstrate a testable, maintainable, and scalable architecture for flutter. flutter_bloc, hive, and REST API are some of the

Elias Andualem 140 Dec 31, 2022
Sample app to demonstrate the integration and working of Dyte SDK for mobile, using Flutter.

Flutter Sample App by dyte Sample App to demonstrate Dyte SDK in flutter Explore the docs ยป View Demo ยท Report Bug ยท Request Feature Table of Contents

Dyte 12 Jan 1, 2023
A simple app to demonstrate a testable, maintainable, and scalable architecture for flutter

A simple app to demonstrate a testable, maintainable, and scalable architecture for flutter. flutter_bloc, hive, and REST API are some of the tech stacks used in this project.

Elias Andualem 139 Dec 28, 2022
DoneIt is a sample note app ๐Ÿ“ Flutter application ๐Ÿ“ฑ built to demonstrate use of Clean Architecture tools. Dedicated to all Flutter Developers with โค๏ธ.

DoneIt ?? DoneIt is a sample note app ?? Flutter application ?? built to demonstrate use of Clean Architecture tools. Dedicated to all Flutter Develop

Shubham Chhimpa 175 Dec 24, 2022
A collection of simple, bare-bones Flutter apps that each demonstrate a concept

flutter-by-example A collection of simple, bare-bones Flutter apps that each demonstrate a concept The apps are slowly being updated to Dart 2; be sur

Matt Sullivan 1k Dec 10, 2022