Using context.mounted in Flutter 3.7

Since Flutter 3.7, BuildContext has a mounted property that we can check after an asynchronous gap. Here's how to use it. https://codewithandrea.com/tips/using-context-mounted-flutter-3.7/

How to Navigate Without Context with GoRouter and Riverpod in Flutter

Let's explore some techniques to separate our business logic and navigation code from the UI, using GoRouter and Riverpod. https://codewithandrea.com/articles/flutter-navigate-without-context-gorouter-riverpod/

How to update old Flutter projects with Dart Fix --apply

An overview of what Dart Fix can do for you, along with some useful VSCode productivity tips and settings for Flutter app development. https://codewithandrea.com/tips/dart-fix-apply/

Riverpod Data Caching and Providers Lifecycle: Full Guide

Riverpod is a powerful reactive caching and data-binding framework. Let’s learn how to make the most of it so we can use it effectively. https://codewithandrea.com/articles/flutter-riverpod-data-caching-providers-lifecycle/

Dart & Flutter with ChatGPT: Is it worth it?

I asked ChatGPT to explain some code and write several programs in Dart & Flutter. Here's a full report with my findings, and some tips to make the most of it. https://codewithandrea.com/articles/dart-flutter-chatgpt/

Flutter Riverpod: Providers Lifecycle and Data Caching Explained

An overview of the data caching capabilities of the Riverpod package, and how things work under the hood. https://codewithandrea.com/articles/flutter-riverpod-providers-lifecycle/

How to Unit Test AsyncNotifier Subclasses with Riverpod 2.0 in Flutter

AsyncNotifier is great. But how do we write unit tests for it? Here are all the details and a template you can follow to test your AsyncNotifier subclasses. https://codewithandrea.com/articles/unit-test-async-notifier-riverpod/

How to use Notifier and AsyncNotifier with the new Flutter Riverpod Generator

A step-by-step tutorial showing how to migrate code using StateProvider and StateNotifier to the new Notifier and AsyncNotifier classes. https://codewithandrea.com/articles/flutter-riverpod-async-notifier/

How to Auto-Generate your Providers with Flutter Riverpod Generator

Thanks to the new Riverpod Generator package, we no longer have to declare providers manually. This guide explains how to use the new @riverpod syntax. https://codewithandrea.com/articles/flutter-riverpod-generator/

Flutter Bottom Navigation Bar with Nested Routes using GoRouter vs Beamer: A Comparison

How to implement bottom navigation with nested routes in Flutter using the GoRouter and Beamer packages (example app with source code included). https://codewithandrea.com/articles/flutter-bottom-navigation-bar-nested-routes-gorouter-beamer/


Members



Search