Skip to content

Commit

Permalink
🩹 bugfix - 350 - Waveform clipping at starting position
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-simformsolutions committed Oct 28, 2024
1 parent 8ce3a40 commit a5217c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.2

- Fixed [#350](https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues/350) - Waveform clipping at starting position

## 1.1.1

- Downgrade flutter_lint version to support flutter version 3.10.x
Expand Down
3 changes: 2 additions & 1 deletion lib/src/audio_waveforms.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ class _AudioWaveformsState extends State<AudioWaveforms> {
Offset _dragOffset = Offset.zero;

double _initialOffsetPosition = 0.0;
double _initialPosition = 0.0;
late double _initialPosition;
Duration currentlyRecordedDuration = Duration.zero;
late StreamSubscription<Duration> streamSubscription;

@override
void initState() {
super.initState();
_initialPosition = -(widget.waveStyle.waveThickness / 2);
widget.recorderController.addListener(_recorderControllerListener);
streamSubscription =
widget.recorderController.onCurrentDuration.listen((duration) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: audio_waveforms
description: A Flutter package that allow you to generate waveform while recording audio or from audio file.
version: 1.1.1
version: 1.1.2
homepage: https://github.com/SimformSolutionsPvtLtd/audio_waveforms
issue_tracker: https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues

Expand Down

0 comments on commit a5217c1

Please sign in to comment.