Flutter State Management: Going from setState to Freezed & StateNotifier with Provider

Mixing UI and logic inside Flutter widgets is bad. Here's how to refactor a simple app for better separation of concerns, immutability, and type safety using Freezed & State Notifier. https://codewithandrea.com/videos/flutter-state-management-setstate-freezed-state-notifier-provider/

Created 3y | Feb 1, 2021, 4:21:37 PM


Login to add comment

Other posts in this group

Flutter Pagination with Riverpod: The Ultimate Guide

A complete guide to implementing pagination with Riverpod, covering: infinite scrolling, loading and error states, search UI, caching, and debouncing. https://codewithandrea.com/articles/flutter-river

Apr 12, 2024, 5:20:02 PM | Code with Andrea
How to Build and Deploy a Dart Shelf App on Globe.dev

Learn how to build and deploy a Dart Shelf App that taps into the OpenAI API without exposing the API key in your Flutter client. https://codewithandrea.com/articles/build-deploy-dart-shelf-app-globe/

Mar 22, 2024, 2:30:05 PM | Code with Andrea
March 2024: Flutter Drag and Drop, JavaScript vs Dart, Useful Packages, Flutter UI Challenges

Also included in this edition: Mastering responsive UIs, how to speed up initial page loads on Flutter web, and all the latest news from Code With Andrea. https://codewithandrea.com/newsletter/march-2

Mar 19, 2024, 3:50:03 PM | Code with Andrea
How to Publish your Flutter Web Apps on GitHub Pages for Free

A step-by-step tutorial showing how to deploy your Flutter web apps to GitHub Pages using Makefiles. https://codewithandrea.com/articles/flutter-web-github-pages/

Mar 8, 2024, 1:20:03 PM | Code with Andrea
How I Built a Modern Course Platform in 2024

An overview of the technologies I used, challenges I faced, and insights I gained from shipping Code With Andrea Pro, my new course platform. https://codewithandrea.com/articles/how-i-built-a-modern-c

Feb 23, 2024, 1:40:06 PM | Code with Andrea
February 2024: Flutter 3.19, PocketBase & Supabase Tutorials, GCP Cloud Logging

In this edition: Flutter 3.19 and the 2024 roadmap are here, new articles, videos, and tutorials, and all the latest news from Code With Andrea. https://codewithandrea.com/newsletter/february-2024/

Feb 22, 2024, 3:20:03 PM | Code with Andrea
We Need To Talk About FlutterFlow

Is FlutterFlow the real deal? Or should you ignore it and continue building apps the old-fashioned way? Here's my take as an experienced developer. https://codewithandrea.com/articles/flutterflow/

Feb 2, 2024, 3:50:05 PM | Code with Andrea