This commit is contained in:
Hamza-Ayed
2024-06-22 13:30:50 +03:00
parent 2bd242b28c
commit 1352fc8b36
48 changed files with 17 additions and 295 deletions

View File

@@ -23,7 +23,6 @@ class AudioRecorderController extends GetxController {
final bool isPermissionGranted = await recorder.hasPermission();
if (!isPermissionGranted) {
// RecordingPermissionException('l');
print('sss');
return;
}
@@ -51,7 +50,6 @@ class AudioRecorderController extends GetxController {
Future<void> stopRecording() async {
final path = await recorder.stop();
print(path);
isRecording = false;
update();
}
@@ -94,11 +92,8 @@ class AudioRecorderController extends GetxController {
final file = File(filePath);
if (await file.exists()) {
await file.delete();
print('File deleted: $filePath');
await getRecordedFiles();
} else {
print('File not found: $filePath');
}
} else {}
}
Future<void> deleteAllRecordedFiles() async {