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.

GitHub

View Github