Stop Doing This in initState (Flutter Stream Leak)
by Pooja Devraye youtube.com
3 min 1 view
I built a tiny "1,204 reading now" badge for a Flutter news app. It works perfectly. But every story I closed left a live socket running. 10 stories later: 12 open sockets, 732 errors in the console, and closed pages stuck in memory. Nothing on screen looked wrong. In this episode: • Why subscribing to a stream in initState without cancelling it leaks the socket AND the whole page • Why the garba…
Apps by Pooja Devraye
More like this
Article 7 min readUnderstanding Streams in Flutter
A stream is one of the challenging topics for the beginner. It took lots of efforts to understand. In order to understand the Streams, you…
Read on medium.com
Article 14 min readFlutter widget tests: a practical example
by
Natalie Masse Hooper
, on Flutter Pro
Natalie Masse Hooper
@nataliemassehooper 🇬🇧 United Kingdom
Available for hire
Mobile developer since 2010. Native Android from 2010 until 2017, Flutter + Native Android from 2017 until 2020, Flutter since 2020.
View Natalie on Flutter ProWhen it comes to mobile apps, automated tests play a very important role in app maintenance. So, how do you write tests in Flutter? As you would expect from a modern framework, Flutter offers both uni...
Read on cogitas.net
Article 16 min readFundamentals of Dart Streams
by
Thomas Burkhart
, on Flutter Pro
Thomas Burkhart
@escamoteur 🇩🇪 Germany
Available for hire
Hi, I'm Thomas 👋 📦 I wrote get_it (546 packages on pub.dev depend on it) and the flutter_it family: watch_it, command_it, listen_it. 🎖️ Google Developer Exp...
View Thomas on Flutter ProWelcome to part 2 of my series on Flutter Architecture: Introduction Fundamentals of Dart Streams (this post) RxDart: Magical transformations of Streams RxVMS foundations: RxCommand and GetIt RxVMS…
Read on burkharts.net
Article 20 min readscoped_model vs BloC_pattern vs states_rebuilder
by MELLATI Meftah
In Flutter, state management techniques differ in: How, Where and when to call setState. This article answers these How-Where-When…
Read on medium.com