Functional Error Handling with Either and fpdart in Flutter: An Introduction

Fpdart aims to bring all the main types found in functional languages to Dart. Here we focus on the Either type and learn how to use it for robust error handling. https://codewithandrea.com/articles/functional-error-handling-either-fpdart/

Functional Error Handling with Either and fpdart in Flutter: An Introduction

If we want to make it explicit when a function can throw or return an error in Dart, we can use the Result type rather than throwing an exception. Here are all the details. https://codewithandrea.com/articles/functional-error-handling-task-either-fpdart/

Flutter Exception Handling with try/catch and the Result type

In Dart, we can use the Result type to make it explicit when a function can return an error, rather than throwing an exception. Here's an overview of the pros and cons. https://codewithandrea.com/articles/flutter-exception-handling-try-catch-result-type/

Flutter Riverpod: How to Register a Listener during App Startup

An overview of how we can use Riverpod to register listeners and initialize complex objects with dependencies during app startup. https://codewithandrea.com/articles/riverpod-initialize-listener-app-startup/

Singletons in Flutter: How to Avoid Them and What to do Instead

An introduction to singletons in Flutter: what problems they solve, what other ones they introduce, and what are their alternatives. https://codewithandrea.com/articles/flutter-singletons/

Flutter App Architecture: The Application Layer

Service classes are the ideal place to store logic that depends on multiple data sources or repositories. Let's explore them by building a shopping cart feature. https://codewithandrea.com/articles/flutter-app-architecture-application-layer/

The Beginner's Guide to Asking Coding Questions Online

Asking questions and receiving answers is a two-way street. Here's what to do when you need to ask a technical coding question. https://codewithandrea.com/articles/beginners-guide-coding-questions/

How to Create DartPad Examples from GitHub Gists

DartPad makes it easy to share your Dart & Flutter samples using GitHub gists, and you can even embed them on your website. Here's how. https://codewithandrea.com/tips/create-dartpad-from-github-gist/

How to Add a Custom Test Timeout in Flutter

When a test waits for a stream value that is never emitted, it will timeout after 30 seconds (by default). Here's how to make it fail fast with a custom timeout. https://codewithandrea.com/tips/custom-test-timeout-flutter/

How to Write Tests using Stream Matchers and Predicates in Flutter

The Flutter testing APIs offer some powerful stream matchers and predicates that we can use to verify state changes over time. Let's see how to use them in practice. https://codewithandrea.com/articles/async-tests-streams-flutter/


Membres



Chercher