Skip to content
Videos
Video

Flutter State Management: setState, StreamBuilder, Scoped Model, Redux

by Andrea Bizzotto youtu.be

29 min 33.2k views

Full source code on GitHub: https://github.com/bizz84/multiple-counters-flutter Sign up here for more videos: https://codingwithflutter.com/ Flutter & Firebase Udemy Course (with discount code): https://www.udemy.com/flutter-firebase-build-a-complete-app-for-ios-android/?couponCode=DART15 In this video I compare the various state management techniques that are common in Flutter. Highlights: - Learn about setState, StreamBuilder, Scoped Model and Redux, and their differences. - Write code to interact with Firebase Realtime Database - Use generics to build reusable classes 02:05 - Firebase Realtime Database integration 08:40 - Common widgets for the app 11:35 - setState 15:26 - StreamBuilder 17:57 - Scoped Model 21:19 - Redux 27:14 - Summary Notes: - I'm using the iOS simulator, but you can open the Android emulator and run the same code. - To run the code on the demo, follow the instructions on the project README file to setup your own Firebase Database instance. - UPDATE 2018-07-12: I have updated the source code to support Cloud Firestore. If you need any help, just ask in the comments. I'll be happy to help. Feedback and suggestions on new tutorials are very welcome! This code was written with Flutter Beta 0.4.4, and is tested to work with Dart 2. Thanks for watching!

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 State management Firebase

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