mirror of
https://github.com/Iconica-Development/flutter_media_picker.git
synced 2025-05-18 16:33:45 +02:00
fix:recording start without permissions
This commit is contained in:
parent
161e66f70d
commit
cf6516bf25
4 changed files with 15 additions and 9 deletions
|
@ -1,3 +1,7 @@
|
|||
## 0.3.4
|
||||
|
||||
- Fixed audio recording that would start without permissions
|
||||
|
||||
## 0.3.3
|
||||
|
||||
- Added optional left button on audio picker
|
||||
|
|
|
@ -146,7 +146,7 @@ packages:
|
|||
path: ".."
|
||||
relative: true
|
||||
source: path
|
||||
version: "0.3.3"
|
||||
version: "0.3.4"
|
||||
flutter_plugin_android_lifecycle:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
|
|
@ -278,7 +278,7 @@ class _RecorderState extends ConsumerState<Recorder> {
|
|||
);
|
||||
}
|
||||
|
||||
playOnTap() {
|
||||
playOnTap() async {
|
||||
if (recording) {
|
||||
widget.audioService.recordStop();
|
||||
|
||||
|
@ -288,13 +288,15 @@ class _RecorderState extends ConsumerState<Recorder> {
|
|||
recording = false;
|
||||
});
|
||||
} else {
|
||||
widget.audioService.recordStart();
|
||||
try {
|
||||
await widget.audioService.recordStart();
|
||||
clock.startClock();
|
||||
|
||||
clock.startClock();
|
||||
|
||||
setState(() {
|
||||
recording = true;
|
||||
});
|
||||
setState(() {
|
||||
recording = true;
|
||||
});
|
||||
// ignore: empty_catches
|
||||
} catch (e) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: flutter_media_picker
|
||||
description: A new Flutter package project.
|
||||
version: 0.3.3
|
||||
version: 0.3.4
|
||||
homepage: https://github.com/Iconica-Development/flutter_media_picker
|
||||
publish_to: "none"
|
||||
|
||||
|
|
Loading…
Reference in a new issue