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

Andrea Bizzotto β€’ June 18, 2018
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 source code on GitHub: https://github.com/bizz84/multiple-counters-flutter Sign up here for more videos: https://codewithandrea.com/ 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 00:00 - Intro 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. Want more? Check out all my Flutter courses: πŸ‘‡πŸ‘‡ https://codewithandrea.com/courses/ Thanks for watching!

Boost Flutter Dev Efficiency

AI-recommended products based on this video

Loading...
Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Noise-Cancelling Mic and LED Display, Built-in Mic for Clear Calls, Waterproof Design for Sports

Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Noise-Cancelling Mic and LED Display, Built-in Mic for Clear Calls, Waterproof Design for Sports

(8)
$39.99
FREE delivery Tue, Nov 4
Loading...
Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Powerful Bass, Built-in Noise-Cancelling Mic for Clear Calls, LED Display, 36H Playtime, IPX5 Waterproof Design for Sports

Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Powerful Bass, Built-in Noise-Cancelling Mic for Clear Calls, LED Display, 36H Playtime, IPX5 Waterproof Design for Sports

(40)
$39.99
FREE delivery Thu, Nov 13
Loading...
AOC 2025 Laptop, Laptop Computer with Processor 12th Alder Lake N97(Up to 3.6GHz) 16GB RAM 512GB SSD 15.6 Inch FHD Screen Premium Laptop Windows 11 Pro, Metal Shell, Type-C, WiFi, Bluetooth

AOC 2025 Laptop, Laptop Computer with Processor 12th Alder Lake N97(Up to 3.6GHz) 16GB RAM 512GB SSD 15.6 Inch FHD Screen Premium Laptop Windows 11 Pro, Metal Shell, Type-C, WiFi, Bluetooth

(201)
$459.99
FREE delivery Tue, Jun 17
50+ bought in past month
Loading...
TREE.NB M5Y1K HD4J0 14.8V 40Wh Battery Compatible for Dell Laptop Battery for 3558 3451 3551 5551 5555 5558 5758 Vostro 3451 GXVJ3 07G07 6YFVW K185W Premium Cells

TREE.NB M5Y1K HD4J0 14.8V 40Wh Battery Compatible for Dell Laptop Battery for 3558 3451 3551 5551 5555 5558 5758 Vostro 3451 GXVJ3 07G07 6YFVW K185W Premium Cells

(1,115)
$29.66
Prime
Loading...
ORICO 4TB NVMe SSD PCIe 4.0- Up to 7200MB/s, M.2 SSD 2280 PCIe 4.0X4 Internal Solid State Drive SSD, Fast Heat Dissipation, Compatible with macOS Windows for Gamers and Creators-e7000

ORICO 4TB NVMe SSD PCIe 4.0- Up to 7200MB/s, M.2 SSD 2280 PCIe 4.0X4 Internal Solid State Drive SSD, Fast Heat Dissipation, Compatible with macOS Windows for Gamers and Creators-e7000

(357)
$299.99
Only 8 left in stock.
Loading...
Samsung 9100 PRO Series - 4TB PCIe 5.0 x4, NVMe 2.0, M.2 Internal SSD, Up to 14,800MB/s, Fast Speed, Thermal Contorl, MZ-VAP4T0B/AM [Canada Version]

Samsung 9100 PRO Series - 4TB PCIe 5.0 x4, NVMe 2.0, M.2 Internal SSD, Up to 14,800MB/s, Fast Speed, Thermal Contorl, MZ-VAP4T0B/AM [Canada Version]

(167)
$679.97$632.37
FREE delivery Tue, Jun 17
Loading...
GiGimundo G7400 4TB M.2 PCIe Gen 4.0x4 NVMe SSD – Max 7400MB/s Read, 7000MB/s Write, Ultimate Performance, Ultra Fast Speed for Gamers & Creators

GiGimundo G7400 4TB M.2 PCIe Gen 4.0x4 NVMe SSD – Max 7400MB/s Read, 7000MB/s Write, Ultimate Performance, Ultra Fast Speed for Gamers & Creators

(178)
$305.99
FREE delivery Tue, Jun 17