mcp__getFlutterGenerator
Generates a complete Flutter component development workflow from MasterGo designs, including widget mapping, screen adaptation, image assets, and asset manifest.
Instructions
Users need to actively call this tool to get the Flutter component development workflow. When Flutter Generator or Flutter Component is mentioned, please actively call this tool. This tool provides a structured workflow for Flutter component development following best practices. It includes MasterGo DSL to Flutter Widget mapping rules, screen adaptation with flutter_screenutil, and feature-based architecture guidance. It also downloads all image resources from the design file to local disk, rewrites CSS and DSL references to point at Flutter asset paths, and generates an asset manifest. You must provide an absolute rootPath of workspace to save workflow files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | MasterGo design file ID (format: file/<fileId> in MasterGo URL) | |
| layerId | Yes | Layer ID of the specific component or element to retrieve (format: ?layer_id=<layerId> / file=<fileId> in MasterGo URL) | |
| rootPath | Yes | The root path of the Flutter project, if the user does not provide, you can use the current directory as the root path | |
| featureName | No | Optional feature directory name under assets/image/ and the Flutter feature module. Defaults to the root component name. | |
| sourceLayerId | No | Source layer ID from URL parameter source_layer_id. When provided, use this instead of layerId for all queries. |