Files
cutdex/packages/cutdex_ui
T
lingjhf 152c051a29
Gitea CI / Check code and tests (pull_request) Failing after 8m56s
Gitea CI / Build Android APK (pull_request) Skipped
Gitea CI / Build Windows x64 app (pull_request) Skipped
Gitea CI / Audit and package Windows x64 (pull_request) Skipped
Gitea CI / Assemble and validate CI artifacts (pull_request) Skipped
Gitea CI / Gitea CI passed (pull_request) Failing after 4s
refactor(build): unify SDK configuration and release tooling
Pin Flutter with FVM and share local environment loading across IDE, Python, and Dart entrypoints. Keep CI on the verified preinstalled SDK and skip local overrides.

Extract common build presets, process execution, and file hashing. Propagate project roots through SDK selection and release commands, and migrate macOS release, signing, and DMG orchestration to Python.

Reuse local check suites in CI, support Android source overrides, and update documentation and regression tests.
152c051a29 · 2026-10-06 22:24:32 +08:00
History
..
2026-10-05 23:36:23 +08:00
2026-10-05 23:36:23 +08:00
2026-10-05 23:36:23 +08:00

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;在本包目录执行:

python3 ../../tool/project_tools.py dart run build_runner build
python3 ../../tool/project_tools.py flutter test

生成的 Freezed 文件随源码提交。测试维护在本包 test/,应用接线测试保留在应用中。