From 628743a6349abd32a83113a43616c9c869447a6f Mon Sep 17 00:00:00 2001 From: Alireza Hassanzadeh <103641808+alireza-hnzpv@users.noreply.github.com> Date: Wed, 13 Dec 2023 16:45:55 +0330 Subject: [PATCH] Update audio_waveform.dart fix bug --- lib/src/core/audio_waveform.dart | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/src/core/audio_waveform.dart b/lib/src/core/audio_waveform.dart index 3836223..371cf89 100644 --- a/lib/src/core/audio_waveform.dart +++ b/lib/src/core/audio_waveform.dart @@ -44,20 +44,6 @@ abstract class AudioWaveform extends StatefulWidget { ), 'Both maxDuration and elapsedDuration must be provided.', ), - assert( - maxDuration == null ? true : maxDuration.inMilliseconds > 0, - 'maxDuration must be greater than 0', - ), - assert( - elapsedDuration == null ? true : elapsedDuration.inMilliseconds >= 0, - 'maxDuration must be greater than 0', - ), - assert( - elapsedDuration == null || maxDuration == null - ? true - : elapsedDuration.inMilliseconds <= maxDuration.inMilliseconds, - 'elapsedDuration must be less than or equal to maxDuration', - ), waveformAlignment = absolute ? invert ? WaveformAlignment.top