Flutter State Management: setState, BLoC, ValueNotifier, Provider

Andrea Bizzotto • July 9, 2019
Video Thumbnail
Andrea Bizzotto Logo

Andrea Bizzotto

@codewithandrea

About

Tutorials about learning Flutter. Subscribe for regular videos covering all things Flutter, including state management, layouts, testing, and more. About me: I'm Andrea, and I created this channel to help you become a better Flutter developer. You can find more Flutter tutorials beyond my YouTube channel: Website: https://codewithandrea.com/ GitHub: https://github.com/bizz84 Flutter & Firebase Udemy Course (discount code included): https://nnbd.me/flutter-firebase

Video Description

Full transcript here: https://codewithandrea.com/videos/2019-07-09-state-management-setstate-bloc-valuenotifier/ GitHub code for this project: https://github.com/bizz84/simple_auth_comparison_flutter Also read the highlights in this article: https://medium.com/coding-with-flutter/flutter-state-management-setstate-bloc-valuenotifier-provider-2c11022d871b In this video we compare various state management techniques, using a simple authentication flow with a loading state as an example. The following techniques are discussed: setState, BloC, RxDart, ValueNotifier, ChangeNotifier, ScopedModel. HIGHLIGHTS 00:00 - Intro 02:45 - Reference code (vanilla) 04:02 - setState 05:29 - BLoC 08:11 - RxDart + BehaviorSubject 08:56 - ValueNotifier 10:31 - ValueNotifier vs ChangeNotifier 12:20 - Summary 13:36 - Bonus: Implementing the Drawer menu Want more? Check out all my Flutter courses: 👇👇 https://codewithandrea.com/courses/ Thanks for watching!