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/

Created 3y | Aug 10, 2022, 2:20:57 PM


Login to add comment

Other posts in this group

GoRouter Delegate Listener for Screen Tracking

If your app uses GoRouter with shell routes, tracking screen views reliably requires some workarounds. Here's how to make it work. https://codewithandrea.com/tips/go-router-delegate-listener/

May 8, 2025, 3:50:03 PM | Code with Andrea
Button Styles in Material 3

Material 3 supports 5 types of buttons: elevated, filled, filled tonal, outlined, and text. Here's how to use them in Flutter. https://codewithandrea.com/tips/button-styles-material3/

May 7, 2025, 11:50:03 AM | Code with Andrea
Test your UI with ThemeData.platform

By overriding ThemeData.platform inside MaterialApp, you can quickly test all your adaptive widgets and any conditional code that checks the platform. https://codewithandrea.com/tips/themedata-platfor

May 6, 2025, 12:40:03 PM | Code with Andrea
Flutter App Analytics: Scalable Architecture & Firebase Setup

A complete guide to adding analytics to Flutter apps using Firebase. Track custom events with a maintainable architecture. https://codewithandrea.com/articles/flutter-app-analytics/

May 2, 2025, 1:40:04 PM | Code with Andrea
Adaptive Alert Dialog (Material, Cupertino)

A simple alert dialog that supports adaptive mode, default and cancel actions, destructive style, and dismissible mode. https://codewithandrea.com/tips/adaptive-alert-dialog/

May 1, 2025, 9:50:03 AM | Code with Andrea
Kotlin DSL in Flutter 3.29: How to Update Your Android Gradle Files

New Kotlin DSL in Flutter 3.29? Learn how to update your Gradle files, configure code signing, flavors, and more, in minutes. https://codewithandrea.com/articles/flutter-android-gradle-kts/

Apr 30, 2025, 3:20:05 PM | Code with Andrea
How to Initialize Firebase Remote Config

A battle tested solution for loading Firebase Remote Config in Flutter, avoiding common pitfalls. https://codewithandrea.com/tips/firebase-remote-config-init/

Apr 30, 2025, 10:40:04 AM | Code with Andrea