breaking(ImageViewer): 补齐图片预览缩放与关闭交互 - #1091
Open
RSS1102 wants to merge 1 commit into
Open
Conversation
Open
Contributor
Web DemoAPK 下载 |
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
Related #1027
💡 需求背景和解决方案
ImageViewer 公开 Demo 收敛为“基础图片预览”和“带操作图片预览”两个入口,并补齐不透明预览背景、操作栏尺寸与页码样式。
保持
TImageViewer.show现有参数不变:支持横向切图、单击关闭、下拉关闭、双击 1x/2x、双指 1~3x 缩放;放大时暂停分页。onClose统一覆盖按钮、单击、下拉及系统返回,且只通知一次;onDelete仍只通知索引。设计及操作结果由 4 张固定 Linux Flutter 3.32 Golden 覆盖:Demo light/dark、真实点击打开带操作面板 light/dark。详细契约和验证记录见
specs/035-image-viewer-design-alignment/。📝 更新日志
breaking(ImageViewer): 单击图片现在会在触发
onTap后关闭预览,并统一触发一次onClosefeat(ImageViewer): 支持双击、双指缩放和下拉关闭,优化操作栏与预览背景
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出