Futures: await vs unawaited vs ignore

When you call a method that returns a Future, you have to choose between using await, unawaited, and ignore. Here's an explanation. https://codewithandrea.com/tips/futures-await-unawaited-ignore/

Created 10mo | Aug 2, 2024, 3:30:03 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