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/

Created 9mo | Apr 26, 2024, 4:10:04 PM


Login to add comment

Other posts in this group

The debugFillProperties Method

If you add a debugFillProperties() method to your custom widget classes, all your custom widget properties will show in the DevTools. https://codewithandrea.com/tips/debug-fill-properties/

Jan 24, 2025, 10:10:04 AM | Code with Andrea
January 2025: Flutter vs React Native, Hard Truths About AI, Pub Workspaces, Less-Known Widgets

Also included: GoRouter in maintenance mode, Dart Serialization Proposal, localizing an app into 55 languages, Cupertino and Material Updates, and more. https://codewithandrea.com/newsletter/january-2

Jan 23, 2025, 1:20:03 PM | Code with Andrea
Uploading the Source Maps to Sentry

If you enable code obfuscation in your Flutter release builds, the stack traces will be unreadable in the Sentry crash reports. Here's how to fix it. https://codewithandrea.com/tips/upload-source-maps

Jan 20, 2025, 6:10:03 PM | Code with Andrea
SSH Access on Codemagic Builds

If your Codemagic builds are failing, you can enable SSH access and login to the build runner to diagnose the issue. https://codewithandrea.com/tips/ssh-access-codemagic/

Jan 16, 2025, 4:40:03 PM | Code with Andrea
How to Release Your Flutter App on the Google Play Store

A reference guide for releasing your Flutter app on the Play Store, including app content, store listing, Android project settings, and code signing. https://codewithandrea.com/articles/how-to-release

Jan 13, 2025, 2:30:04 PM | Code with Andrea
Move Declaration to File (VSCode assist)

With VSCode, you can easily move your Dart classes and functions to a different file (this is very useful when refactoring). https://codewithandrea.com/tips/move-to-file-vscode-assist/

Jan 8, 2025, 1:50:05 PM | Code with Andrea
Using Stack and FractionallySizedBox

Here's how to overlay multiple widgets inside a Stack and constrain their size and position with Positioned and FractionallySizedBox. https://codewithandrea.com/tips/stack-fractionally-sized-box/

Jan 7, 2025, 10:10:03 AM | Code with Andrea