breaking(dialog): 调整 Dialog 默认顶边距与关闭按钮位置 - #1036
Open
RSS1102 wants to merge 1 commit into
Open
Conversation
Contributor
Web DemoAPK 下载 |
Open
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
💡 需求背景和解决方案
Dialog 的默认内容区顶边距与关闭按钮位置与小程序官方基线各差 8px,示例页此前仅展示少量业务化场景。本次对齐官方默认样式并补齐官方示例矩阵:
t_dialog.dart,无公开 API 签名变化):contentPadding由EdgeInsets.fromLTRB(24, 32, 24, 0)调整为EdgeInsets.fromLTRB(24, 24, 24, 0)(顶部 32→24);top: 0 / end: 0调整为top: 8 / end: 8。t_dialog_page.dart):重构为「01 组件类型 / 02 组件状态 / 03 特殊类型」三组,公开展示反馈类、确认类、按钮布局、带图片、带输入、命令调用共 21 个官方场景;带图片场景复用仓库已打包资源,垂直按钮通过既有actionsWidget组合表达,不扩大基础 API。同步运行generate_example_code.dart更新代码片段。specs/010-dialog-official-alignment/acceptance.md):Flutter 3.32.0 与 3.47.0 下组件测试(14 tests)与示例测试(3 tests)均 PASS;flutter analyze --fatal-infos --no-pub0 issues;Dialog 生产源码 LCOV172/174 = 98.85%(≥95%);生成片段--checkPASS。待人工/真机验证项(当前保持未完成):
📝 更新日志
breaking(dialog): 调整 Dialog 默认内容区顶边距(由 32px 调整为 24px)breaking(dialog): 调整 Dialog 关闭按钮位置(由面板顶/右角移至距顶/右各 8px)本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出