Flutter State Management: Going from setState to Freezed & StateNotifier with Provider
15.9 هزار بار بازدید -
4 سال پیش
-
Mixing UI and logic inside
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/flu...
As a bonus, here's a movie app built to compare Provider, flutter_bloc and Riverpod:
https://github.com/bizz84/movie_app_s...
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!
Written tutorial here: 👇👇
https://codewithandrea.com/videos/flu...
As a bonus, here's a movie app built to compare Provider, flutter_bloc and Riverpod:
https://github.com/bizz84/movie_app_s...
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!
4 سال پیش
در تاریخ 1399/11/13 منتشر شده
است.
15,989
بـار بازدید شده