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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v?.?.? - ????-??-?? - (??????)

### Fix

- 修复了自我评级开启时复习页面可能溢出的问题

## v0.1.13 - 2026-2-6 - (000113)

### Added
Expand Down
12 changes: 6 additions & 6 deletions lib/pages/learning_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class LearningPage extends StatelessWidget {
ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Theme.of(context).colorScheme.onPrimary.withAlpha(150),
fixedSize: Size(mediaQuery.size.width * 0.4, mediaQuery.size.height * 0.2),
fixedSize: Size(mediaQuery.size.width * 0.4, mediaQuery.size.height * 0.15),
shape: RoundedRectangleBorder(borderRadius: BorderRadiusGeometry.vertical(top: Radius.circular(25.0))),
),
onPressed: () {
Expand Down Expand Up @@ -63,7 +63,7 @@ class LearningPage extends StatelessWidget {
ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Theme.of(context).colorScheme.onPrimary.withAlpha(150),
fixedSize: Size(mediaQuery.size.width * 0.4, mediaQuery.size.height * 0.3),
fixedSize: Size(mediaQuery.size.width * 0.4, mediaQuery.size.height * 0.25),
shape: RoundedRectangleBorder(
borderRadius: StaticsVar.br,
),
Expand Down Expand Up @@ -99,7 +99,7 @@ class LearningPage extends StatelessWidget {
if(context.read<Global>().globalFSRS.config.pushAmount != 0) ElevatedButton.icon(
style: ElevatedButton.styleFrom(
backgroundColor: Theme.of(context).colorScheme.onPrimary.withAlpha(150),
fixedSize: Size(mediaQuery.size.width * 0.7, mediaQuery.size.height * 0.2),
fixedSize: Size(mediaQuery.size.width * 0.8, mediaQuery.size.height * 0.15),
shape: RoundedRectangleBorder(borderRadius: StaticsVar.br),
),
onPressed: (){
Expand Down Expand Up @@ -128,13 +128,13 @@ class LearningPage extends StatelessWidget {
);
},
icon: Icon(Icons.push_pin, size: 24),
label: Text("学习推送单词", style: TextStyle(fontSize: 40.0, fontWeight: FontWeight.bold)),
label: FittedBox(child: Text("学习推送单词", style: TextStyle(fontSize: 40.0))),
),
SizedBox(height: mediaQuery.size.height * 0.05),
ElevatedButton.icon(
style: ElevatedButton.styleFrom(
backgroundColor: Theme.of(context).colorScheme.onPrimary.withAlpha(150),
fixedSize: Size(mediaQuery.size.width * 0.7, mediaQuery.size.height * 0.2),
fixedSize: Size(mediaQuery.size.width * 0.8, mediaQuery.size.height * 0.2),
shape: RoundedRectangleBorder(borderRadius: StaticsVar.br),
),
onPressed: (){
Expand All @@ -147,7 +147,7 @@ class LearningPage extends StatelessWidget {
);
},
icon: Icon(Icons.abc, size: 24),
label: Text("词汇总览", style: TextStyle(fontSize: 40.0, fontWeight: FontWeight.bold)),
label: Text("词汇总览", style: TextStyle(fontSize: 40.0)),
),
]
);
Expand Down
11 changes: 6 additions & 5 deletions lib/sub_pages_builder/learning_pages/fsrs_pages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class _FSRSReviewCardPage extends State<FSRSReviewCardPage> {
return Material(
child: ChoiceQuestions(
mainWord: widget.fsrs.config.selfEvaluate ? "[selfEvaluate]" : wordData[widget.wordID].arabic,
midWidget: widget.fsrs.config.selfEvaluate ? WordCard(word: wordData[widget.wordID]) : null,
midWidget: widget.fsrs.config.selfEvaluate ? WordCard(word: wordData[widget.wordID], width: mediaQuery.size.width * 0.8, height: mediaQuery.size.height * 0.4, useMask: !choosed) : null,
choices: options!,
allowAudio: true,
allowAnitmation: !widget.fsrs.config.selfEvaluate,
Expand Down Expand Up @@ -395,10 +395,10 @@ class _FSRSReviewCardPage extends State<FSRSReviewCardPage> {
icon: Icon(Icons.tips_and_updates),
label: Text(value == 0.0 ? "忘了?" : "详解"),
),
if(!widget.fsrs.config.selfEvaluate) SizedBox(width: mediaQuery.size.width*0.02*value),
SizedBox(width: mediaQuery.size.width*0.02*value, height: mediaQuery.size.height * 0.1),
if(value > 0.3) ElevatedButton.icon(
style: ElevatedButton.styleFrom(
fixedSize: Size(mediaQuery.size.width * (widget.fsrs.config.selfEvaluate ? 1 : 0.5) * value, mediaQuery.size.height * 0.1),
fixedSize: Size(mediaQuery.size.width * (widget.fsrs.config.selfEvaluate ? 0.8 : 0.5) * value, mediaQuery.size.height * 0.1),
shape: RoundedRectangleBorder(borderRadius: StaticsVar.br)
),
onPressed: () {
Expand Down Expand Up @@ -473,7 +473,7 @@ class _FSRSLearningPageState extends State<FSRSLearningPage> {
Expanded(child: SizedBox()),
ElevatedButton.icon(
style: ElevatedButton.styleFrom(
fixedSize: Size(mediaQuery.size.width * 0.8, mediaQuery.size.height * 0.2),
fixedSize: Size(mediaQuery.size.width * 0.8, mediaQuery.size.height * 0.15),
shape: RoundedRectangleBorder(borderRadius: StaticsVar.br)
),
icon: Icon(index == widget.words.length-1 ? Icons.arrow_forward : Icons.arrow_downward),
Expand All @@ -485,7 +485,8 @@ class _FSRSLearningPageState extends State<FSRSLearningPage> {
controllerLearning.nextPage(duration: Duration(milliseconds: 500), curve: StaticsVar.curve);
}
},
)
),
SizedBox(height: mediaQuery.size.height * 0.02)
],
);
}
Expand Down