Flutter State Management: Going from setState to Freezed & StateNotifier with Provider

Mixing UI and logic inside Flutter widgets is bad. Here's how to refactor a simple app for better separation of concerns, immutability, and type safety using Freezed & State Notifier. https://codewithandrea.com/videos/flutter-state-management-setstate-freezed-state-notifier-provider/

Létrehozva 4y | 2021. febr. 1. 16:21:37


Jelentkezéshez jelentkezzen be

EGYÉB POSTS Ebben a csoportban

TextFormField Setup for Numeric Inputs

When working with forms in Flutter, numeric inputs need special attention. To improve the user experience, set the appropriate keyboardType and inputFormatters. https://codewithandrea.com/tips/text-fo

2025. ápr. 15. 16:10:04 | Code with Andrea
Showing URLs on Flutter web with TextSpan

The TextSpan class lets you set a custom mouse cursor style, along with a tap gesture recognizer for opening your URL links on Flutter web. https://codewithandrea.com/tips/show-flutter-web-url-text-sp

2025. ápr. 9. 16:20:08 | Code with Andrea
A/B Testing in Flutter

A/B tests help you make data-driven decisions and increase conversions in your app. Here's how they work. https://codewithandrea.com/tips/ab-testing-flutter/

2025. ápr. 8. 12:30:04 | Code with Andrea
Release Toggles with Dart Defines

Static release toggles let you release unfinished code without activating it in production. Here's how to use --dart-define to manage them. https://codewithandrea.com/tips/release-toggles-dart-define/

2025. ápr. 2. 15:10:04 | Code with Andrea
int.fromEnvironment and bool.fromEnvironment

When reading variables from .env files, you can use int.fromEnvironment and bool.fromEnvironment to read integers and booleans. https://codewithandrea.com/tips/int-bool-from-environment/

2025. márc. 28. 12:20:09 | Code with Andrea
March 2025: Hot-reload on Flutter web, Practical Architecture, Unified Riverpod Syntax

Also included: Lesser-known Dart and Flutter functionalities, latest from Code with Andrea, and some thoughts on vibe coding with AI. https://codewithandrea.com/newsletter/march-2025/

2025. márc. 25. 12:30:03 | Code with Andrea
Hot Reload on Flutter web (beta)

To enable this, switch to the latest Flutter beta (3.31) and run your app with --web-experimental-hot-reload https://codewithandrea.com/tips/hot-reload-flutter-web-beta/

2025. márc. 20. 11:50:03 | Code with Andrea