From 5b9cba793e81827c7c244d6e239d0ca015789684 Mon Sep 17 00:00:00 2001 From: shen <> Date: Fri, 18 Sep 2026 07:38:54 -0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E5=8F=A3=E8=AF=AD?= =?UTF-8?q?=E9=98=B2=E9=87=8D=E5=A4=8D=E9=97=AE=E7=AD=94=E3=80=81=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E6=8E=A8=E8=BF=9B=E6=B5=81=E8=BD=AC=E3=80=81=E9=94=AE?= =?UTF-8?q?=E7=9B=98=E8=BE=93=E5=85=A5=E6=B5=81=E7=95=85=E5=BA=A6=E4=B8=8E?= =?UTF-8?q?=E7=AB=96=E5=B1=8F=E9=94=81=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AI口语约束:在对话系统提示词与单轮指导中增加防重复问答约束,避免重复寒暄及索取已提供信息,根据历史自然向前推进 - 课程流转:修复多段课程学完后今日任务卡片流转下一课,及退出重进定位逻辑 - 竖屏锁定:在 Flutter、Android 及 iOS 平台配置仅支持竖屏显示 - 对话交互:优化对话界面文本输入重绘与词汇查询,解决键盘输入卡顿 - 测试用例:补充并更新单轮约束、状态流转与返回键退出测试,212项测试全绿 --- .../android/app/src/main/AndroidManifest.xml | 1 + kouyu_english/ios/Runner/Info.plist | 4 - kouyu_english/lib/core/ai_service.dart | 13 +- kouyu_english/lib/core/app_state_lesson.dart | 11 +- .../lib/core/courses/course_catalog.dart | 62 ++++++++ .../lib/core/courses/course_repository.dart | 47 ++++++ kouyu_english/lib/core/generated_content.dart | 128 +++++---------- .../lib/features/dialogue/dialogue_flow.dart | 83 ++++++---- .../lib/features/home/today_task_card.dart | 42 ++++- .../lib/features/lesson/lesson_flow.dart | 20 ++- .../lib/features/shell/learning_shell.dart | 140 ++++++++-------- kouyu_english/lib/main.dart | 4 + kouyu_english/lib/widgets/lexicon_lookup.dart | 150 ++++++++++++++---- kouyu_english/test/app_state_test.dart | 18 +++ .../test/deepseek_thinking_test.dart | 7 +- .../test/navigation_back_button_test.dart | 80 ++++++++++ 16 files changed, 568 insertions(+), 242 deletions(-) diff --git a/kouyu_english/android/app/src/main/AndroidManifest.xml b/kouyu_english/android/app/src/main/AndroidManifest.xml index d8d8aa5..8fb7878 100644 --- a/kouyu_english/android/app/src/main/AndroidManifest.xml +++ b/kouyu_english/android/app/src/main/AndroidManifest.xml @@ -14,6 +14,7 @@ android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" + android:screenOrientation="portrait" android:windowSoftInputMode="adjustResize">