Files
arc/.planning/quick/260330-ld1-example-id-id/260330-ld1-PLAN.md
leon 184c3a9f16 feat(example): 添加人脸注册按钮和ID显示功能
- 添加注册按钮,点击生成随机人脸ID(格式:F + 8位数字)
- 实时显示检测到的人脸对应的ID
- 使用彩色标签区分已注册(绿色)和未注册(橙色)状态

Quick task: 260330-ld1
2026-03-30 15:28:31 +08:00

27 lines
990 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Quick Task 260330-ld1: Example App 人脸注册功能
## Task Description
在example的人脸识别预览页面增加一个注册按钮id使用随机数。同时预览页面应该显示检测到的人脸对应的id。
## Files to Modify
- `example/lib/main.dart` - 添加注册按钮和人脸ID显示
## Tasks
### Task 1: 添加人脸ID存储和随机生成逻辑
- **file**: `example/lib/main.dart`
- **action**: 添加 `Map<int, String>` 存储人脸ID映射添加随机ID生成函数
- **verify**: 编译通过
### Task 2: 添加注册按钮和ID显示UI
- **file**: `example/lib/main.dart`
- **action**: 在底部信息区域添加注册按钮显示检测到的人脸ID列表
- **verify**: UI 正确显示,按钮可点击
### Task 3: 实现注册功能
- **file**: `example/lib/main.dart`
- **action**: 点击注册按钮为当前检测到的人脸生成随机ID并存储更新UI显示
- **verify**: 注册后显示随机生成的ID
---
*Plan created: 2026-03-30*