Flutter App Architecture: The Presentation Layer

How to implement controller classes that can hold business logic, manage widget state, and interact with repositories in the data layer. https://codewithandrea.com/articles/flutter-presentation-layer/

How to update a Map of key-value pairs in Dart

Ever needed to update a value if a given key already exists, or set it if it doesn't? Here's how to use the Map.update() method to solve this. https://codewithandrea.com/tips/dart-map-update-method/

Use AsyncValue.guard rather than try/catch inside your StateNotifier subclasses

If you have many StateNotifier subclasses, using try/catch can be tedious. With AsyncValue.guard you get the same result with less boilerplate. https://codewithandrea.com/tips/async-value-guard-try-catch/

How to Generate and Analyze a Flutter Test Coverage Report in VSCode

How to use the flutter tool generate a test coverage report for your app or package, and improve your testing workflow with two helpful VSCode extensions. https://codewithandrea.com/articles/flutter-test-coverage/

Flutter Navigation with GoRouter: Go vs Push

An in-depth explanation of the difference between Go and Push when using GoRouter for declarative routing. https://codewithandrea.com/articles/flutter-navigation-gorouter-go-vs-push/

Flutter Project Structure: Feature-first or Layer-first?

An overview of the "features inside layers" vs "layers inside features" approach when choosing a project structure for medium/large Flutter apps. https://codewithandrea.com/articles/flutter-project-structure/

Flutter App Architecture with Riverpod: An Introduction

An introduction to a new App Architecture based on Riverpod, and comparison with other popular ones such as MVC, MVVM, Bloc, Stacked & Clean Architecture. https://codewithandrea.com/articles/flutter-app-architecture-riverpod-introduction/

Flutter Riverpod Tip: Use AsyncValue rather than FutureBuilder or StreamBuilder

The AsyncValue class from the Riverpod package offers a much nicer API compared to AsyncSnapshot from the FutureBuilder and StreamBuilder widgets. Here's how to use it. https://codewithandrea.com/articles/flutter-use-async-value-not-future-stream-builder/

Flutter App Architecture: The Domain Model

An introduction to the domain model and its role in defining entities and the business logic for manipulating them in the context of Flutter app architecture. https://codewithandrea.com/articles/flutter-app-architecture-domain-model/


Membri



Ricerca