How to Hide Generated Dart Files in GitHub PRs

If you use build_runner and your generated Dart files are added to Git, you can hide them by default in your PRs and diffs. Here's how. https://codewithandrea.com/tips/hide-generated-files-with-gitattributes/

Vytvorené 12d | 7. 5. 2024, 14:30:02


Ak chcete pridať komentár, prihláste sa

Ostatné príspevky v tejto skupine

REST Client Extension for VSCode

How to send HTTP requests and view the response directly in Visual Studio Code. https://codewithandrea.com/tips/rest-client-vscode/

18. 5. 2024, 8:20:11 | Code with Andrea
Enabling Asserts in Release Mode in Dart / Flutter

By default, asserts are only enabled in Debug mode. To enable them in Release mode, run with the --enable-asserts flag. https://codewithandrea.com/tips/enable-asserts-flag/

18. 5. 2024, 8:20:11 | Code with Andrea
Use SizedBox.shrink() to return an empty box

If you need to return an empty widget, SizedBox.shrink() is more performant than an empty Container. https://codewithandrea.com/tips/sizedbox-shrink/

18. 5. 2024, 8:20:10 | Code with Andrea
Responsive Flutter Layout with SizedBox & Center

Some helper widgets for creating Flutter layouts that grow horizontally up to a given width, then remain fixed at that width. https://codewithandrea.com/tips/responsive-center-layout/

30. 4. 2024, 15:40:07 | Code with Andrea
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/

26. 4. 2024, 16:10:04 | Code with Andrea
How to Use Tags in Your Unit and Widget Tests

Ever wanted to filter tests so you only run the ones you need to? This can be easily done using test tags. https://codewithandrea.com/tips/unit-widget-test-tags-flutter/

26. 4. 2024, 16:10:03 | Code with Andrea
Code Generation with Dart & Flutter: The Ultimate Guide

An extensive guide covering the code generation mechanism in Dart, useful code-generating packages, and tips for efficient codebase maintenance. https://codewithandrea.com/articles/dart-flutter-code-g

26. 4. 2024, 13:50:01 | Code with Andrea