Resilient Dart: Stop Your Flutter Apps from Crashing
by Tyler Codes youtube.com
23 min 433 views
What happens when your API fails? In this Flutter tutorial, we’ll use polly_dart to add retry logic, fallbacks, and resilience patterns to your networking code. Inspired by the .NET Polly package, polly_dart makes it easy to wrap API calls in robust error handling strategies so your app can survive flaky networks and temporary failures. We’ll cover: - Installing and setting up polly_dart in a Flutter project - Creating a retry policy for API calls - Handling timeouts and transient errors - Building a simple API client (with Dio) for demonstration - Testing against a mock API server with random failures Perfect if you want production-grade resilience in your Flutter apps. Source Code: https://github.com/tylersavery/resilient_dart polly_dart: https://pub.dev/packages/polly_dart docs: https://polly.anirudhsingh.in/ #flutter #dart #coding
Topics Dio and networking Testing
More like this
- Article 6 min read
dio_essentials: four Dio interceptors for dedup, retry, token refresh and logging
by Abdeldjalil Chougui
Many apps that use Dio end up with the same four interceptors. One retries failed requests. One attaches the access token and refreshes it on a 401. One logs. And at some point someone adds a fourth t...
Read on dev.to - Article 5 min read
dio_essentials: أربعة interceptors لـ Dio للدمج وإعادة المحاولة وتجديد الـ token والتسجيل
by Abdeldjalil Chougui
كثير من التطبيقات التي تستعمل Dio تنتهي بنفس الـ interceptors الأربعة (المعترِضات التي تمرّ بها الطلبات والردود). واحد يعيد محاولة الطلبات الفاشلة. واحد يضيف الـ access token ويجدّده عند 401. واحد يسج...
Read on dev.to
Video 11 minUne faille sur Dio (Flutter) ⚠️ Rebondissements chez Docker 🤦♂️ Nouveautés Android 🤖 DevCafé 27/03
DevCafé ☕️ résume tous les matins les principales informations à retenir autour de l’actualité du développement. Dans ce numéro, nous verrons que GitHub a malencontreusement publié sa clé privée RSA,...
Watch on YouTube
Video 18 minNouvelles versions : Flutter 3.27, Gemini Flash 2, iOS 18.2, VSCode… 🚀 DevCafé 12/12
🔈 Désolé pour les problèmes de son sur la partie Flutter, je n’avais pas le temps de refaire. Cet épisode est consacré à des nouveautés qui sont nombreuses aujourd’hui. - On a ainsi Apple qui a mis à...
Watch on YouTube