Flutter Pull-to-Refresh + initState: The Duplicate Fetch Nobody Notices
by Pooja Devraye youtube.com
3 min 0 views
I opened my news app once, and my server got the same request twice. Then I pulled to refresh, and the spinner vanished before the data even arrived. So I pulled again. And again. Two bugs hiding in almost every Flutter app: 1. Loading in initState AND calling RefreshIndicator.show() on open, so every open fetches twice. 2. An onRefresh that returns before the data arrives (bloc.add doesn't wait)…
Topics Bloc
Apps by Pooja Devraye
More like this
Video 12 minWhat is the BLoC pattern in Flutter?
by GiancarloCode
🔥 In this part of the Flutter course you will learn what is the BLoC Pattern and how to state management in Flutter with the BLoC pattern 🔥 📚 Content: 💡 00:09 What is the BLoC Pattern? 💡 00:33 Wh...
Watch on YouTube
Article 19 min readHow to Leverage BLoC for Code Sharing in Flutter and AngularDart
by Marko Perutović
Learn how the BLoC pattern can lead to more than 50% code reuse in both your Flutter mobile apps and your AngularDart web app! BLoC is a paradigm through which you can isolate your business logic in p...
Read on toptal.com
Video 35 minExpense Tracker App • Flutter & BLoC Tutorial for Beginners
by HeyFlutter․com
Watch on YouTube
Article 15 min readGetting Started With Flutter BLoC
Learn to use BLoC properly with this article by Kacper Kogut
Read on dev.to