How to Run Multiple Test Variants

You can run a widget test multiple times with the variant argument. Very useful for golden image tests for different screen sizes. https://codewithandrea.com/tips/run-multiple-test-variants/

Erstellt 26d | 26.04.2024, 16:10:04


Melden Sie sich an, um einen Kommentar hinzuzufügen

Andere Beiträge in dieser Gruppe

Prefer const over final over var

Const is for hardcoded, compile-time constants. Final is for read-only variables that are set just once. Var is for variables that are set more than once. https://codewithandrea.com/tips/const-vs-fina

22.05.2024, 08:10:04 | Code with Andrea
Use Type Annotations for Safer Code

By adding type annotations to your collections, the Dart analyzer will warn you if you add values of the wrong type. https://codewithandrea.com/tips/use-type-annotations-for-safer-code/

22.05.2024, 08:10:04 | Code with Andrea
How to Define Type Aliases in Dart

Here's how to use typedef to define type aliases for your function and non-function types in Dart. https://codewithandrea.com/tips/how-to-define-type-aliases-dart/

22.05.2024, 08:10:04 | Code with Andrea
May 2024: Flutter 3.22, Firebase Data Connect, Wasm Updates, Dart Macros Preview

Also included in this edition: Google I/O news, new Flutter features, creating custom linter rules, how to run JavaScript in Flutter, and more. https://codewithandrea.com/newsletter/may-2024/

21.05.2024, 13:50:02 | Code with Andrea
JsonCodable (Dart Macros experiment)

How to use the JsonCodable macro to augment your classes with fromJson and toJson methods https://codewithandrea.com/tips/json-codable/

21.05.2024, 11:30:13 | Code with Andrea
Transform SVG assets at build time (Vector Graphics Compiler)

Here's how to use the Vector Graphics Compiler to precompile SVGs at build time for better rendering performance. https://codewithandrea.com/tips/vector-graphics-compiler/

21.05.2024, 11:30:12 | Code with Andrea
Flutter Web App Initialization Logic with CSS Loader

How to use the web app bootstrap process (new in Flutter 3.22) and add a CSS progress indicator before the Flutter app is ready to take over. https://codewithandrea.com/tips/flutter-web-app-initializa

21.05.2024, 11:30:12 | Code with Andrea