Skip to content

Commit 5a57d10

Browse files
Merge pull request #46 from OctagonalStar/dev
improve for issue 43 44 45
2 parents 6a5e5b9 + b2d6b1e commit 5a57d10

File tree

5 files changed

+8
-13
lines changed

5 files changed

+8
-13
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- 添加了调试页面
99
- 添加了个性化FSRS预设页面 [#26](https://github.com/OctagonalStar/arabic_learning/issues/26)
1010
- 添加了安卓通知功能 [#24](https://github.com/OctagonalStar/arabic_learning/issues/24)
11+
- 添加了题型可拖动提示 [#43](https://github.com/OctagonalStar/arabic_learning/issues/43)
1112

1213
### Improvement
1314

@@ -17,13 +18,15 @@
1718
- 优化连胜逻辑: FSRS复习也计算为连胜
1819
- 调整了部分按钮的UI设计
1920
- 去除了查看详解时,单词卡片的高斯模糊
21+
- 按照FSRS学习单词计算总学习单词[#45](https://github.com/OctagonalStar/arabic_learning/issues/45)
2022

2123
### Fix
2224

2325
- 修复了FSRS算法对已经过期的单词无法计数的问题
2426
- 修复了日志中FSRS信息输出错误的问题
2527
- 修复了新用户无法进入的问题
2628
- 修复了FSRS复习界面中,“下一题”动画期间文字溢出的问题
29+
- 修复了固定列数文本溢出的问题[#44](https://github.com/OctagonalStar/arabic_learning/issues/44)
2730

2831
### Delete
2932

lib/pages/home_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class HomePage extends StatelessWidget {
7878
children: [
7979
Text('已学词汇', style: TextStyle(fontSize: 12.0)),
8080
SizedBox(height: mediaQuery.size.height * 0.03),
81-
Text(context.read<Global>().globalConfig.learning.knownWords.length.toString(), style: TextStyle(fontSize: 24.0, fontWeight: FontWeight.bold)),
81+
Text(fsrs.config.enabled ? fsrs.config.cards.length.toString() : "未启用" , style: TextStyle(fontSize: 24.0, fontWeight: FontWeight.bold)),
8282
],
8383
),
8484
),

lib/sub_pages_builder/learning_pages/learning_pages_build.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ class _WordCardOverViewPage extends State<WordCardOverViewPage> {
607607
children: [
608608
StatefulBuilder(
609609
builder: (context, setLocalState) {
610-
return Row(
610+
return Column(
611611
mainAxisSize: MainAxisSize.min,
612612
children: [
613613
Text("设置固定列数"),
@@ -625,7 +625,7 @@ class _WordCardOverViewPage extends State<WordCardOverViewPage> {
625625
context.read<Global>().uiLogger.info("设置固定列数为$value");
626626
},
627627
),
628-
SizedBox(width: 60, child: Text(forceColumn == 0 ? "0(自动)" : forceColumn.toString()))
628+
Text(forceColumn == 0 ? "0(自动)" : forceColumn.toString())
629629
],
630630
);
631631
}

lib/sub_pages_builder/setting_pages/questions_setting_page.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ class _QuestionsSettingPage extends State<QuestionsSettingPage> {
131131
appBar: AppBar(title: Text("题型配置: ${widget.sectionKey}")),
132132
body: Column(
133133
children: [
134+
if(!context.read<Global>().isWideScreen) TextContainer(text: "长按可拖动排序", style: TextStyle(color: Colors.grey)),
134135
Expanded(
135136
child: ReorderableListView(
136137
onReorder: (oldIndex, newIndex) {

lib/vars/config_structure.dart

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -300,24 +300,17 @@ class LearningConfig {
300300
/// 连续学习最后有记录的日期(相较于2025/11/1)
301301
final int lastDate;
302302

303-
/// 已经学习的单词
304-
/// 内部int为单词ID
305-
final List<int> knownWords;
306-
307303
const LearningConfig({
308304
int? startDate,
309305
int? lastDate,
310-
List<int>? knownWords
311306
}):
312307
startDate = startDate??0,
313-
lastDate = lastDate??0,
314-
knownWords = knownWords??const [];
308+
lastDate = lastDate??0;
315309

316310
Map<String, dynamic> toMap(){
317311
return {
318312
"startDate": startDate,
319313
"lastDate": lastDate,
320-
"KnownWords": knownWords,
321314
};
322315
}
323316

@@ -326,7 +319,6 @@ class LearningConfig {
326319
return LearningConfig(
327320
startDate: setting["startDate"],
328321
lastDate: setting["lastDate"],
329-
knownWords: setting["knownWords"]
330322
);
331323
}
332324

@@ -338,7 +330,6 @@ class LearningConfig {
338330
return LearningConfig(
339331
startDate: startDate ?? this.startDate,
340332
lastDate: lastDate ?? this.lastDate,
341-
knownWords: knownWords ?? this.knownWords,
342333
);
343334
}
344335
}

0 commit comments

Comments
 (0)