|
|
|
@ -178,7 +178,6 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
|
voiceCaller = CallByVoice(waitings.first.callNoStr.toString(), preVoice: "Ticket Number", postVoice: postVoice, lang: 'en');
|
|
|
|
voiceCaller = CallByVoice(waitings.first.callNoStr.toString(), preVoice: "Ticket Number", postVoice: postVoice, lang: 'en');
|
|
|
|
await voiceCaller.startCalling();
|
|
|
|
await voiceCaller.startCalling();
|
|
|
|
voiceCaller = null;
|
|
|
|
voiceCaller = null;
|
|
|
|
log("isQueuePatients : ${isQueuePatients.length}");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (isQueuePatients.isNotEmpty) {
|
|
|
|
if (isQueuePatients.isNotEmpty) {
|
|
|
|
await Future.delayed(Duration(milliseconds: int.parse(isQueuePatients.first.queueDuration) * 10)).whenComplete(() async {
|
|
|
|
await Future.delayed(Duration(milliseconds: int.parse(isQueuePatients.first.queueDuration) * 10)).whenComplete(() async {
|
|
|
|
@ -191,7 +190,6 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (isQueuePatients.isEmpty && callFlag == 1) {
|
|
|
|
if (isQueuePatients.isEmpty && callFlag == 1) {
|
|
|
|
callFlag == 0;
|
|
|
|
callFlag == 0;
|
|
|
|
log("Done : ${isQueuePatients.length}");
|
|
|
|
|
|
|
|
await Future.delayed(const Duration(seconds: 3));
|
|
|
|
await Future.delayed(const Duration(seconds: 3));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|