Skip to content

Commit 3e84bdc

Browse files
committed
FIX: 修复学习设置测试替身静态分析失败
1 parent 5c86786 commit 3e84bdc

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎TASKS.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
55
## 本次完成
66

7+
- [x] 修复 GitHub CI 静态分析失败:为 `learning_progress_provider_test.dart` 的测试替身补齐新增的 `setAutoShowDailyShare` 实现,并同步更新内存状态。验证:从上次成功 CI 提交至当前提交,46 个有改动的测试文件共 467 项测试全部通过;CI 同款 `flutter analyze --no-fatal-warnings --no-fatal-infos lib test` 通过(仅有既有 warning/info),格式与 diff 检查通过。**完成时间**: 2026-11-09
8+
79
- [x] 升级应用版本至 1.0.47:将 `pubspec.yaml` 中的版本从 1.0.46 提升至 1.0.47。纯版本元数据变更,无需运行测试。**完成时间**: 2026-11-09
810

911
- [x] 学习首页与日历页共用连续学习天数 badge,学习首页保留点击进入日历,日历页仅展示。上下内边距各 8 dp、字号提升到 13 dp(整体约 33 dp),增加尺寸、字号和交互回归断言。验证:组件与两个页面定向测试 38 项通过,定向 `flutter analyze` 无问题,格式与 diff 检查通过。**完成时间**: 2026-11-09

‎test/providers/learning_progress_provider_test.dart‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ class _TestLearningSettingsNotifier extends Notifier<LearningSettings>
6666
state = state.copyWith(dailyGoalMinutes: minutes);
6767
}
6868

69+
@override
70+
Future<void> setAutoShowDailyShare(bool enabled) async {
71+
if (state.autoShowDailyShare == enabled) return;
72+
state = state.copyWith(autoShowDailyShare: enabled);
73+
}
74+
6975
@override
7076
Future<void> setShowStudyRecommendation(bool enabled) async {
7177
if (state.showStudyRecommendation == enabled) return;

0 commit comments

Comments
 (0)