Skip to content
Videos
Video

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

by Andrea Bizzotto youtube.com

23 min 16.9k views

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. Written tutorial here: 👇👇 https://codewithandrea.com/videos/flutter-state-management-setstate-freezed-state-notifier-provider/ As a bonus, here's a movie app built to compare Provider, flutter_bloc and Riverpod: https://github.com/bizz84/movie_app_state_management_flutter CONTENTS: 00:00 - Intro 02:03 - Example Starter Project: Create Profile Page with setState 05:59 - ChangeNotifier implementation and its drawbacks 12:07 - Freezed package 15:47 - StateNotifier 16:55 - Using Freezed + StateNotifier + Provider 20:24 - Wrap Up 21:53 - Movie app on GitHub Join my FREE email course to become a Flutter expert with the best resources, at your own pace: https://codewithandrea.com/newsletter/ Want more? Check out all my Flutter courses: 👇👇 https://codewithandrea.com/courses/ Happy coding!

Made by

Andrea Bizzotto @andreabizzotto 🇬🇧 United Kingdom

Available for hire

Andrea Bizzotto has extensive experience in mobile app development, having built complex apps for various clients and as an independent developer. He is passion...

View Andrea on Flutter Pro
Forum

Questions about this, or something to add?

Discuss on the forum

Topics Riverpod Provider State management

It's All Widgets

Apps by Andrea Bizzotto

  • Flight CO2 Calculator screenshot

    Flight CO2 Calculator

    Simple app to calculate the CO2 emissions from your flights.

    Open source

Report this · Wrote this? Claim it

Supported by