https://github.com/devizor/mason_bricks
My collection of Mason bricks
https://github.com/devizor/mason_bricks
bricks clean-architecture flutter mason mason-cli
Last synced: about 1 month ago
JSON representation
My collection of Mason bricks
- Host: GitHub
- URL: https://github.com/devizor/mason_bricks
- Owner: devizor
- Created: 2024-05-31T00:12:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-31T00:14:20.000Z (about 2 years ago)
- Last Synced: 2025-06-19T09:43:58.954Z (12 months ago)
- Topics: bricks, clean-architecture, flutter, mason, mason-cli
- Language: Dart
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mason Bricks
Welcome to the Mason Bricks repository! This repository contains a collection of reusable bricks for your Mason projects, specifically designed for Flutter. These bricks help accelerate your development by providing pre-built and customizable building blocks.
## 🧱 Available Bricks
1. **bloc** - A brick for managing state using the BLoC (Business Logic Component) pattern, leveraging `freezed` for immutable data classes.
2. **entity** - A brick for creating entities with a standard structure. This brick includes both entity and DTO (Data Transfer Object) classes.
3. **facade** - A brick for implementing the Facade design pattern, simplifying complex interactions. This brick includes both facade and repository classes.
## 🚀 How to Use
To use these bricks in your Flutter project, follow the instructions below.
### Install [mason_cli](https://pub.dev/packages/mason_cli) from pub or homebrew.
```bash
# Install from pub.dev
$ dart pub global activate mason_cli
# Install from homebrew
$ brew tap felangel/mason
$ brew install mason
```
### Adding a Brick to Your Project
To add a specific brick from this repository, use the following command:
```bash
mason add -g --git-url https://github.com/devizor/mason_bricks.git --git-path