A collection of packages that enable developers to create and consume reusable templates called bricks.
Note
This is a masonex repository, a fork originally developed by Jules and Antigravity. It extends the original mason with advanced features.
masonex provides a more robust and flexible template generation process, including support for binary data and advanced template syntax.
- Binary Data Protection: Detects binary variables (
List<int>) and uses temporary markers to prevent corruption during the rendering process. - Extended Syntax: Supports pipes (
{{ var | pascalCase }}), dot notation ({{ var.camelCase() }}), and alternative closing tags ({{%name}}). - Advanced Engine: Uses mustachex for enhanced Lambda and Partial support.
- Binary Restoration: Re-injects original raw bytes after rendering to ensure binary files (like PNGs) remain uncorrupted.
| Package | Pub |
|---|---|
| mason | |
| mason_api | |
| mason_cli | |
| mason_logger |
# 🎯 Activate from https://pub.dev
dart pub global activate mason_cli
# 🚀 Initialize mason
mason init
# 📦 Install your first brick
mason add hello
# 🧱 Use your first brick
mason make helloView the full documentation here.
| Package of the Week by Flutter | Observable Flutter: Building a Mason brick by Flutter |
|---|---|
![]() |
![]() |
| Meet Mason: Flutter Vikings 2022 by Flutter Community | Felix Angelov Demos Mason by Very Good Ventures |
|---|---|
![]() |
![]() |
Add a markdown badge to indicate your project is powered by mason →
[](https://github.com/felangel/mason)




