generateMason method
void
generateMason(
- String projectName
)
Implementation
void generateMason(String projectName) async {
final brick = Brick.git(
const GitPath(
'https://github.com/elysian12/flutter_template_brick',
path: 'flutter_template',
),
);
final generator = await MasonGenerator.fromBrick(brick);
final target = DirectoryGeneratorTarget(Directory('$projectName/lib'));
await generator.generate(target, vars: <String, dynamic>{
"colors": "colors",
"textStyle": "text_style",
"theme": "theme",
"helper": "helper",
"helpers": [
{"name": "Helper"},
{"name": "IconHelper"},
{"name": "AssetHelper"},
{"name": "ImageHelper"}
],
"home": "home",
"router": "router",
"main": "main"
});
}