优化自动备份位置展示#142
Merged
utopiafar merged 1 commit intoMay 18, 2026
Merged
Conversation
PR Preflight Summary / PR 预检汇总中文
English
PR Policy Preflight / PR 规则预检PR Policy Preflight / PR 规则预检中文
未发现确定性规则问题。 English
No deterministic policy findings. PR Flutter Quality / Flutter 质量预检PR Flutter Quality / Flutter 质量预检中文
English
Flutter Analyzer Baseline
No new analyzer issues introduced by this PR. Flutter Test Baseline
No new Flutter test failures introduced by this PR. |
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.
背景
Closes #140
自动备份页原先只在设置卡片中展示位置文本,长路径会被截断;Android SAF 自定义目录也只展示文件夹名,无法查看完整授权 URI。iOS 上如果直接暴露沙盒路径,也不符合用户在“文件”App 中查找备份的心智。
改动
BackupLocationInfo,区分主展示文案和完整路径/URI。验证
flutter pub get --offlineflutter test --no-pub test/ui/settings/widgets/backup_restore_page_test.dartdart analyze lib/data/services/backup_service.dart lib/ui/settings/widgets/backup_restore_page.dart test/ui/settings/widgets/backup_restore_page_test.dartgit diff --check upstream/main...HEAD说明
content://URI,而不是伪造本地文件路径。