扑动
- 作者仓库星标 0
- 作者仓库 skills-registry
- 领域
- 人工智能
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @tomevault-io · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
When writing or reviewing any Flutter/Dart code in this repository:
1. **Never hardcode style values.** Colors, font sizes, spacing, border radii, and icon sizes must come from `app_theme.dart` (`AppColors`, `AppText`, `AppLayout`, `AppIcons`). If a value is missing, add it there first.
2. **Keep files small and focused.** One widget family per file. If a file exceeds ~200 lines, split it. Extract private widget classes (`_SomeWidget`) instead of nesting logic inline inside `build`.
3. **Keep functions simple.** Build methods and helpers should be short. Deep nesting is a signal to extract a named widget.
4. **Cover with tests.** Every new widget needs at least one BDD widget test in `src/ui/test/`. Use fake API implementations (not mocks). Cover the golden path and key edge cases (empty, error, loading). Use `const Key('...')` on widgets so tests can target them reliably.
---
> Source: [bsterligov/river](https://github.com/bsterligov/river) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->
章节与文件索引
按说明文件中的顺序排列。
切勿对样式值进行硬编码。
保持文件小而集中。
保持功能简单。
用测试覆盖。
文件/命令 -> app_theme.dart · AppColors · AppText · AppLayout · AppIcons · _SomeWidget · build · src/ui/test/
内容校验值 -> 8981a131a0cd
当前原文的自动摘译,尚未人工审校。
切勿对样式值进行硬编码。
颜色、字体大小、间距、边框半径和图标大小必须来自
app_theme.dart(AppColors,AppText,AppLayout,AppIcons)。如果缺少值,请先将其添加到此处。保持文件小而集中。
每个文件一个小部件系列。如果文件超过约 200 行,请将其拆分。提取私有小部件类(
_SomeWidget) 而不是在内部内联嵌套逻辑build。保持功能简单。
构建方法和助手应该简短。深度嵌套是提取命名小部件的信号。
用测试覆盖。
每个新小部件都需要至少进行一次 BDD 小部件测试
src/ui/test/。使用假 API 实现(不是模拟)。涵盖黄金路径和关键边缘情况(空、错误、加载)。使用const Key('...')在小部件上,以便测试可以可靠地针对它们。--- > 来源:bsterligov/river — 由 TomeVault 分发。