mta-mcp 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/flutter.agent.md +64 -46
- package/package.json +1 -1
package/agents/flutter.agent.md
CHANGED
|
@@ -142,52 +142,70 @@ get_standard_by_id({ ids: ['flutter', 'flutter-ui-system'] })
|
|
|
142
142
|
|
|
143
143
|
### 🔴 全局样式优先(最高优先级)
|
|
144
144
|
|
|
145
|
-
**在还原任何 UI
|
|
146
|
-
|
|
147
|
-
####
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
-
|
|
189
|
-
-
|
|
190
|
-
-
|
|
145
|
+
**在还原任何 UI 前,必须首先通过项目搜索检查是否存在全局样式规范!**
|
|
146
|
+
|
|
147
|
+
#### 强制检查流程(搜索发现法)
|
|
148
|
+
|
|
149
|
+
**核心原则**:不假设任何固定值,通过搜索项目代码发现现有规范
|
|
150
|
+
|
|
151
|
+
##### 1. 圆角检查
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
# 搜索圆角定义
|
|
155
|
+
grep -r "radius\|Radius\|RADIUS\|borderRadius" lib/ --include="*.dart"
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**寻找模式**:
|
|
159
|
+
- `DesignRadius` / `AppRadius` / `Radius` 类定义
|
|
160
|
+
- `BorderRadius.circular(数字)` 的常量定义
|
|
161
|
+
- 查看最常用的数值(如 12、16、20)
|
|
162
|
+
|
|
163
|
+
**使用优先级**:
|
|
164
|
+
1. 项目已有的 Radius 类常量(如 `DesignRadius.lg`)
|
|
165
|
+
2. 查看现有组件中使用频率最高的值
|
|
166
|
+
3. 如无规范,则直接使用设计稿数值,待后续统一
|
|
167
|
+
|
|
168
|
+
##### 2. 按钮高度检查
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
# 搜索按钮高度定义
|
|
172
|
+
grep -r "ButtonSize\|buttonHeight\|height.*button" lib/ --include="*.dart"
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
**寻找模式**:
|
|
176
|
+
- `DesignButtonSizes` / `AppButtonSizes` 类
|
|
177
|
+
- `Container(height: 常量)` 包裹的 Button
|
|
178
|
+
- 查看主 CTA、标准按钮、小按钮的高度
|
|
179
|
+
|
|
180
|
+
##### 3. 阴影检查
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
# 搜索阴影定义
|
|
184
|
+
grep -r "Shadow\|boxShadow\|elevation" lib/ --include="*.dart"
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
**寻找模式**:
|
|
188
|
+
- `DesignShadows` / `AppShadows` 类
|
|
189
|
+
- `BoxShadow` 配置(offset、blur、color)
|
|
190
|
+
- Neumorphism 阴影模式
|
|
191
|
+
|
|
192
|
+
##### 4. 颜色检查
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
# 搜索颜色定义
|
|
196
|
+
grep -r "Colors\|AppColors\|DesignColors\|Color(0x" lib/ --include="*.dart"
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
**寻找模式**:
|
|
200
|
+
- 颜色类定义(通常在 `lib/core/themes/` 或 `lib/constants/`)
|
|
201
|
+
- 查看主色、文字色、背景色的命名规范
|
|
202
|
+
- 渐变色定义(`LinearGradient`)
|
|
203
|
+
|
|
204
|
+
#### 通用禁止事项
|
|
205
|
+
|
|
206
|
+
- ❌ **直接硬编码数值** - 应先搜索项目规范
|
|
207
|
+
- ❌ **假设特定类名** - 不同项目命名不同(AppColors vs DesignColors)
|
|
208
|
+
- ❌ **跳过搜索步骤** - 即使觉得"简单"也必须先搜索
|
|
191
209
|
|
|
192
210
|
### 强制要求:完整读取选中元素及其所有子集
|
|
193
211
|
|