Skip to content
Videos
Video

Moving from flutter_bloc v7 to v8

by everyDev youtube.com

11 min 2k views

The newest version of flutter_bloc is here, and mapEventToState is dead, long live event handlers! But maybe you don't know where to start, or it feels like too much of a drastic change. Don't worry, we've got you covered. In this video, we migrate a (very simple) app from flutter_bloc v7 to v8. In doing so, we start to see some of the strengths of using emit instead of the old yield system. This video only scratches the surface of the new power in flutter_bloc 8, but is a good place to start. GitHub Link to sample project: https://github.com/flutterfromscratch/bloc_migration flutter_bloc discord channel: https://discord.com/invite/Hc5KD3g Flutter From Scratch Instagram: https://www.instagram.com/flutterfromscratch/ 00:00 - Intro 01:05 - Sample project demo 02:04 - Fake Network Service 02:52 - Bloc V7 method 03:53 - Attack of the yield generators 06:05 - Bloc V8 method 08:10 - No more yield generators! 09:36 - Conclusion

Forum

Questions about this, or something to add?

Discuss on the forum

Topics Bloc

Report this · Wrote this? Claim it

Supported by