Gitea CI / Check code and tests (push) Successful in 7m38s
Gitea CI / Build Android APK (push) Successful in 6m20s
Gitea CI / Audit and package Windows x64 (push) Canceled after 0s
Gitea CI / Assemble and validate CI artifacts (push) Canceled after 0s
Gitea CI / Gitea CI passed (push) Canceled after 0s
Gitea CI / Build Windows x64 app (push) Canceled after 14m42s
23 lines
1.3 KiB
Markdown
23 lines
1.3 KiB
Markdown
# cutdex_ui
|
|
|
|
Cutdex workspace 内部 Flutter 包,维护通用组件与基础视觉主题,暂不发布。
|
|
|
|
- `theme.dart`:主题、语义颜色、间距与控件尺寸。
|
|
- `widgets.dart`:菜单、选择框、对话框、输入控件、标签页、面板、下载进度、滚动渐隐等。
|
|
- `cutdex_ui.dart`:上述两个入口。
|
|
|
|
组件通过参数接收文本、数据与回调;应用本地化与项目状态由调用方提供。选择框的空列表文案使用 `emptyLabel`,可搜索选择框同时传入 `searchHint`。对话框默认关闭提示由 Flutter 的 Material 本地化提供,也可传入 `closeLabel`。
|
|
|
|
`WorkspacePanel` 通过参数接收标题、控件与内容;`ResourceDownloadProgress` 接收字节数、速度与调用方提供的状态文案,`formatResourceBytes` 使用十进制字节单位。资源目录、下载任务与业务对话框由应用维护。
|
|
|
|
原生菜单通过 `cutdex_native` 展示,无法展示时回退到 Flutter 菜单。时间线与编辑器的业务样式由应用维护。
|
|
|
|
在应用根目录执行 `fvm dart tool/flutter_local.dart pub get`;在本包目录执行:
|
|
|
|
```sh
|
|
python3 ../../tool/project_tools.py dart run build_runner build
|
|
python3 ../../tool/project_tools.py flutter test
|
|
```
|
|
|
|
生成的 Freezed 文件随源码提交。测试维护在本包 `test/`,应用接线测试保留在应用中。
|