Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- 添加了调试页面
- 添加了个性化FSRS预设页面 [#26](https://github.com/OctagonalStar/arabic_learning/issues/26)
- 添加了安卓通知功能 [#24](https://github.com/OctagonalStar/arabic_learning/issues/24)
- 添加了题型可拖动提示 [#43](https://github.com/OctagonalStar/arabic_learning/issues/43)

### Improvement

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

### Fix

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

### Delete

Expand Down
2 changes: 1 addition & 1 deletion lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class HomePage extends StatelessWidget {
children: [
Text('已学词汇', style: TextStyle(fontSize: 12.0)),
SizedBox(height: mediaQuery.size.height * 0.03),
Text(context.read<Global>().globalConfig.learning.knownWords.length.toString(), style: TextStyle(fontSize: 24.0, fontWeight: FontWeight.bold)),
Text(fsrs.config.enabled ? fsrs.config.cards.length.toString() : "未启用" , style: TextStyle(fontSize: 24.0, fontWeight: FontWeight.bold)),
],
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ class _WordCardOverViewPage extends State<WordCardOverViewPage> {
children: [
StatefulBuilder(
builder: (context, setLocalState) {
return Row(
return Column(
mainAxisSize: MainAxisSize.min,
children: [
Text("设置固定列数"),
Expand All @@ -625,7 +625,7 @@ class _WordCardOverViewPage extends State<WordCardOverViewPage> {
context.read<Global>().uiLogger.info("设置固定列数为$value");
},
),
SizedBox(width: 60, child: Text(forceColumn == 0 ? "0(自动)" : forceColumn.toString()))
Text(forceColumn == 0 ? "0(自动)" : forceColumn.toString())
],
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class _QuestionsSettingPage extends State<QuestionsSettingPage> {
appBar: AppBar(title: Text("题型配置: ${widget.sectionKey}")),
body: Column(
children: [
if(!context.read<Global>().isWideScreen) TextContainer(text: "长按可拖动排序", style: TextStyle(color: Colors.grey)),
Expanded(
child: ReorderableListView(
onReorder: (oldIndex, newIndex) {
Expand Down
11 changes: 1 addition & 10 deletions lib/vars/config_structure.dart
Original file line number Diff line number Diff line change
Expand Up @@ -300,24 +300,17 @@ class LearningConfig {
/// 连续学习最后有记录的日期(相较于2025/11/1)
final int lastDate;

/// 已经学习的单词
/// 内部int为单词ID
final List<int> knownWords;

const LearningConfig({
int? startDate,
int? lastDate,
List<int>? knownWords
}):
startDate = startDate??0,
lastDate = lastDate??0,
knownWords = knownWords??const [];
lastDate = lastDate??0;

Map<String, dynamic> toMap(){
return {
"startDate": startDate,
"lastDate": lastDate,
"KnownWords": knownWords,
};
}

Expand All @@ -326,7 +319,6 @@ class LearningConfig {
return LearningConfig(
startDate: setting["startDate"],
lastDate: setting["lastDate"],
knownWords: setting["knownWords"]
);
}

Expand All @@ -338,7 +330,6 @@ class LearningConfig {
return LearningConfig(
startDate: startDate ?? this.startDate,
lastDate: lastDate ?? this.lastDate,
knownWords: knownWords ?? this.knownWords,
);
}
}
Expand Down