Use this plugin to generate waveforms while recording audio in any file formats supported by given encoders or from audio files. We can use gestures to scroll through the waveforms or seek to any position while playing audio and also style waveforms
Fixed divison by zero due to duration value being rounded to 0 for audios under 1 second length. I changed the variable from duration (in seconds) to durationMillis which fixes an exception that was thrown.
Offset argument contained a NaN value.
'dart:ui/painting.dart':
Failed assertion: line 39 pos 10: '<optimized out>'
Fixed divison by zero due to duration value being rounded to 0 for audios under 1 second length. I changed the variable from duration (in seconds) to durationMillis which fixes an exception that was thrown.