This repo contains bricks used by the mason_cli package. To add them to your local machine, simply follow the instructions underneath the Add Usage section of the mason_cli home page.
I primarily code using the stacked architecture by FilledStacks so many of the bricks below generate "stacked" code. This typically includes a View and a corresponding ViewModel.
The responsive view brick generates a single view that will resize itself responsively based on the dimensions of the screen it is displayed on. Breakpoints are determined using the breakpoint package.
The responsive view brick (rview) uses the following architecture:
- base
- layouts
- small.dart
- medium.dart
- large.dart
- widgets
- base_view.dart
- base_view_model.dart
- layouts
The layouts folder will contain small, medium, and large layout files. The expectation is that these layout files will arrange widgets in the widgets folder in ways that are appropriate for the given screen size.
To install:
mason remove <brick name> -g
mason add -g go-main --git-url https://github.com/jtmuller5/mullr-bricks --git-path mason/bricks/go-main
mason add -g stacked_feature --git-url https://github.com/jtmuller5/mullr-bricks --git-path mason/bricks/stacked_feature
To use:
mason make go-main --name name