golden_bricks
1.0.0, released 4 years ago by flutterbountyhunters.com
A font that renders each character as a rectangle for consistent golden tests
What it does
Provides a custom font that replaces anti‑aliased text with uniform rectangles, making golden test screenshots stable. The font is exported as a constant and can be loaded in tests via golden_toolkit.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need stable text rendering in golden tests
- You want to avoid anti‑aliasing artifacts in screenshots
- You want a font that mimics regular text size but is deterministic
Skip it when
- You are not running golden tests
- You need a full-featured font with typographic nuances
Strengths
- Stable, deterministic rendering
- Easy to load in tests
- Matches regular text size
Weaknesses
- Only useful for golden tests
- No typographic features
- Requires golden_toolkit for loading
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add golden_bricks to pubspec, import goldenBricks constant, load fonts with golden_toolkit's loadAppFonts() in test config
Text(
"Some text",
style: const TextStyle(
fontFamily: goldenBricks,
),
);Alternatives
Packages that do the same job and could replace golden_bricks.
- spot
Toolkit for Flutter widget tests with chainable selectors and automatic timeline reports.
82Compare - golden_test
A zero-dependency wrapper for Flutter golden tests with theme, locale, and multi-device support.
79Compare - golden_screenshot
Utilities to automate screenshot generation using Flutter's golden tests.
76Compare