|
|
|
@ -1201,14 +1201,17 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void startRecoding() async {
|
|
|
|
|
PermissionStatus status = await Permission.microphone.request();
|
|
|
|
|
if (status.isDenied) {
|
|
|
|
|
startRecoding();
|
|
|
|
|
} else if (status.isGranted) {
|
|
|
|
|
sRecoding();
|
|
|
|
|
} else {
|
|
|
|
|
startRecoding();
|
|
|
|
|
}
|
|
|
|
|
await Permission.microphone.request().then((PermissionStatus status){
|
|
|
|
|
if (status.isPermanentlyDenied) {
|
|
|
|
|
// startRecoding();
|
|
|
|
|
} else if (status.isDenied) {
|
|
|
|
|
startRecoding();
|
|
|
|
|
} else if (status.isGranted) {
|
|
|
|
|
sRecoding();
|
|
|
|
|
} else {
|
|
|
|
|
startRecoding();
|
|
|
|
|
}});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// else {
|
|
|
|
|