Skip to content

Commit

Permalink
fix: 정지했다가 키면 다시 연속해서 말할수 있도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
bunju20 committed Feb 15, 2024
1 parent 56854a6 commit b5826d4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/views/realtime/real_create_script_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ class _RealCreateScriptPageState extends State<RealCreateScriptPage> {
}
void handleStatus(String status) {
print('Handling Status: $status'); // 현재 처리 중인 상태 로깅
if(handDone) return;
if(handDone) {
return;
}
if (status == 'done') {
print("Status is 'done'. Stopping and restarting listening.");
stopListening();
Expand Down Expand Up @@ -63,6 +65,7 @@ class _RealCreateScriptPageState extends State<RealCreateScriptPage> {
handDone = true;
stopListening();
} else {
handDone = false;
startListening();
}
}
Expand Down Expand Up @@ -113,6 +116,7 @@ class _RealCreateScriptPageState extends State<RealCreateScriptPage> {
// 뒤로 가기 버튼을 눌렀을 때 텍스트 필드를 초기화합니다.
textEditingController.text = "";
Navigator.of(context).pop();
handDone = false;
},
),
),
Expand Down Expand Up @@ -167,4 +171,4 @@ class _RealCreateScriptPageState extends State<RealCreateScriptPage> {
),
);
}
}
}

0 comments on commit b5826d4

Please sign in to comment.