Canardoux / flutter_sound

Flutter plugin for sound. Audio recorder and player.
Mozilla Public License 2.0
868 stars 567 forks source link

[BUG]: openRecorder and stop recorder error : type 'Null' is not a subtype of type 'int' #854

Open JulyWitch opened 2 years ago

JulyWitch commented 2 years ago

Severity


Platforms you faced the error


Describe the bug

An exception is thrown when I call openRecorder or stopRecorder on Recorder.

As you may see in logs, It's actually a mismatch between strings logLevel and call arguments 'level'.

To Reproduce Steps to reproduce the behavior:

  1. Call openRecorder

Logs

Screen Shot 2022-03-07 at 10 13 57 AM
tanwang11 commented 1 year ago

Hello, I have also encountered the same problem. May I know how it was resolved

JulyWitch commented 1 year ago

Hello, I have also encountered the same problem. May I know how it was resolved

Yes of course, Here is how I fixed it in two steps:

image image

Didn't find any other solution 😂

tanwang11 commented 1 year ago

Thank you very much. It can indeed be resolved this way

github-actions[bot] commented 9 months ago

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.