Search packages, repositories and app categories

Package detailsv0.1.3

mason

A Dart template generator which helps teams generate files quickly and consistently.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
1.2M
Likes
842
Pub points
160

Install package

flutter pub add mason

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Mason is a Dart template generator designed to help development teams create files quickly and consistently. It enables users to define reusable templates for code, configuration, or project structure, ensuring uniformity across projects. By leveraging command-line interactions, Mason streamlines repetitive tasks such as generating screens, models, or services in Flutter applications. It integrates seamlessly into existing workflows and supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. With its extensible architecture and open-source foundation, Mason enhances productivity while maintaining consistency across team environments.

Use cases

  • Generating boilerplate code
  • Standardizing project structure
  • Automating file creation
  • Onboarding new developers
  • Maintaining consistent coding patterns
  • Scaffolding Flutter modules

Key features

  • Template-based file generation
  • Command-line interface
  • Extensible template system
  • Cross-platform support
  • Team-wide consistency
  • Integration with Flutter workflows

Suitable for

  • Flutter development teams
  • Large-scale application scaffolding
  • CI/CD pipelines
  • New project setup
  • Developer onboarding

Considerations

  • Requires initial template setup
  • Learning curve for template authoring
  • Limited to file generation (not logic)
  • Depends on community-maintained templates
  • Not suitable for runtime code generation

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

mason logo

mason coverage License: MIT Powered by Mason


A collection of packages that enable developers to create and consume reusable templates called bricks.

Mason Demo

Packages

Package Pub
mason pub package
mason_api pub package
mason_cli pub package
mason_logger pub package

Quick Start

# 🎯 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 hello

Documentation

View the full documentation here.

Video Tutorials

Package of the Week by Flutter Observable Flutter: Building a Mason brick by Flutter
mason (Package of the Week) Observable Flutter: Building a Mason brick
Meet Mason: Flutter Vikings 2022 by Flutter Community Felix Angelov Demos Mason by Very Good Ventures
Meet Mason: Intro to Templating and Custom Code Generation Mason Video Tutorial

Badge

Add a markdown badge to indicate your project is powered by mason → Powered by Mason

[![Powered by Mason](https://img.shields.io/endpoint?url=https%3A%2F%2Ftinyurl.com%2Fmason-badge)](https://github.com/felangel/mason)

Categories

Dependencies

Dependency list 14 items

Source repository

Projects using this package

Rankings