feat: save repeat audio on mic record and rename button to play repeat

This commit is contained in:
shen
2026-09-15 22:52:49 +08:00
parent 2a2668829d
commit 11929d6a03
8 changed files with 113 additions and 94 deletions
+16 -1
View File
@@ -41,4 +41,19 @@ void main() {
);
expect(check.onPressed, isNotNull);
});
}
testWidgets('speaking step displays use mic and play repeat buttons', (
tester,
) async {
final state = AppState()..lessonStep = LessonStep.speaking;
await tester.pumpWidget(
MaterialApp(
home: LessonFlow(state: state, onOpenDialogue: () {}, onFinish: () {}),
),
);
expect(find.text('跟读'), findsOneWidget);
expect(find.text('使用麦克风跟读'), findsOneWidget);
expect(find.text('播放跟读'), findsOneWidget);
});
}