diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f0ed60e..3f15234e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Chore [#461](https://github.com/SimformSolutionsPvtLtd/audio_waveforms/pull/461) - Update analysis options and related files - Fixed [#464](https://github.com/SimformSolutionsPvtLtd/audio_waveforms/pull/464) - Fixed labels not displaying properly during recording - Feature [#398](https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues/398) - Add noOfSamplesPerSecond parameter to preparePlayer for easier waveform configuration +- Fixed [#441](https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues/441) - Incorrect waveform UI when setting `Duration.zero` for AudioFileWaveforms ## 2.0.1 diff --git a/lib/src/audio_file_waveforms.dart b/lib/src/audio_file_waveforms.dart index 422cdd5d..43b4ce94 100644 --- a/lib/src/audio_file_waveforms.dart +++ b/lib/src/audio_file_waveforms.dart @@ -168,8 +168,9 @@ class _AudioFileWaveformsState extends State ); _growingWaveController - ..forward() - ..addListener(_updateGrowAnimationProgress); + ..addListener(_updateGrowAnimationProgress) + ..forward(); + onCurrentDurationSubscription = playerController.onCurrentDurationChanged.listen((event) { _seekProgress.value = event;