feat: add color picker - #1055
Open
liweijie0812 wants to merge 22 commits into
Open
Conversation
colorScheme.dividerColor 在较新 Flutter 版本中已从 ColorScheme 移除, 改用 DividerTheme.of(context).color ?? colorScheme.outlineVariant 保持双版本兼容。
- 格式区由只读整串文本改为分段通道展示(RGB | 0 | 26 | 87 | 100%),格式名框+连体分段框,对齐 mobile-vue __format - 色相条渐变 stop 对齐 mobile-vue 非均匀分布(17%/33%/50%/67%/83%) - 滑块轨道包裹 thumb 区域、白圆底内嵌当前色圆点 - 透明条底改斜向棋盘格(6px 网格 #c5c5c5) - 饱和度面板改三层渐变叠加(基色/白色横渐/黑色纵渐) - 区块间距对齐 mobile-vue(16/20/28),swatch 改单行横向滚动、间距 12 - 清除按钮移至系统预设色彩标题行右侧 - 修复三处 num→double 隐式转型(clamp 补 toDouble())
…-105/feat/color-picker
- 展示按钮用 SizedBox 包裹展开为通栏宽度,对齐 mobile-vue popup 示例 (新 TButton 契约下按钮收缩内容宽,原先纵向堆叠视觉不符) - 拖拽取色改为弹窗内草稿值,「确定」才提交、「取消 / 蒙层」回显旧值, 对齐 calendar 等示例的确认链路 - 文案统一使用 TText;站点文档弹窗示例同步
Member
|
npc/CodeBuddy(glm-5.3-flash) seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Contributor
Web DemoAPK 下载 |
修复 check-flutter-component-contracts.mjs 报 'missing API manifest entry for site route: color-picker' 的问题: - 在 tool/components.json 中为 color-picker 添加 API manifest 条目 - 新增生成的 example/assets/api/color-picker_api.md
- fix(color-picker): TColorPickerThemeData 注册进全局主题管道,主题子树注入生效 - fix(color-picker): HEX/HEX8/CSS 格式区补右端 alpha 固定段(对齐 getFormatList) - fix(color-picker): 透明条棋盘格调整到彩色渐变 rail 下层,避免污染不透明区 - refactor(ColorPicker): onChanged 收敛为具名双参签名 (value, change) - style(ColorPicker): 格式区文字与色板标题改用 placeholder 弱化色 Token - test(ColorPicker): 补拖拽交互/主题注册/alpha 段用例并修正存量断言, 新增 light/dark Golden 基线,ColorPicker 测试纳入 CI 门禁
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🤔 这个 PR 的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
📝 更新日志
待补充
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出