Flutter 组件预览
原名:flutter-add-widget-preview
为 Flutter 组件增加可交互预览,方便检查不同状态和主题。
中文 Skills 技能说明
适合新组件、页面改版或设计系统维护。技能会先识别现有预览机制和主题,再增加最小示例状态;预览数据应使用脱敏样本,不能把预览正常当成设备兼容和业务流程已经验证。
上游能力依据
上游原始适用说明:Adds interactive widget previews to the project using the previews.dart system. Use when creating new UI components or updating existing screens to ensure consistent design and interactive testing.
上游 SKILL.md 主要章节(保留原文标题):
- Contents
- Preview Guidelines
- Handling Limitations
- Workflows
- Creating a Widget Preview
- Interacting with Previews
- Examples
- Basic Preview
- Custom Preview with Runtime Transformation
- MultiPreview Implementation
使用边界
先核对上游说明、依赖、输入资料和所需权限。涉及写入、删除、发布、支付或外部发送时,必须在执行前人工确认。
作者、翻译与许可证
- 原作者
- The Flutter Authors 与 flutter/agent-plugins contributors
- 中文翻译
- CEOFans翻译
- 许可证
- BSD-3-Clause
- 上游来源
- https://github.com/flutter/agent-plugins/tree/864cf8797b190ddb81e4875db6dd6bab89641f62/skills/flutter-add-widget-preview
适用范围
平台:linux、macos、windows;标签:设计与前端、Flutter 组件预览
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。