diff --git a/just_audio_web/CHANGELOG.md b/just_audio_web/CHANGELOG.md index 2dcdbeeea..107896286 100644 --- a/just_audio_web/CHANGELOG.md +++ b/just_audio_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.4.13 + +* Fix `dart2js`/`dart2wasm` compile error with Flutter 3.26.0 (@SleepySquash). + ## 0.4.12 * Bump package:web version to `>=0.5.1 <2.0.0` (@ali2236) diff --git a/just_audio_web/lib/just_audio_web.dart b/just_audio_web/lib/just_audio_web.dart index 5b77aae44..1cf4ec81a 100644 --- a/just_audio_web/lib/just_audio_web.dart +++ b/just_audio_web/lib/just_audio_web.dart @@ -114,50 +114,50 @@ class Html5AudioPlayer extends JustAudioPlayer { Html5AudioPlayer({required String id}) : super(id: id) { _audioElement.addEventListener( 'durationchange', - (event) { + (Event event) { _durationCompleter?.complete(); broadcastPlaybackEvent(); }.toJS); _audioElement.addEventListener( 'error', - (event) { + (Event event) { _durationCompleter?.completeError(_audioElement.error!); }.toJS); _audioElement.addEventListener( 'ended', - (event) async { + (Event event) { _currentAudioSourcePlayer?.complete(); }.toJS); _audioElement.addEventListener( 'timeupdate', - (event) { + (Event event) { _currentAudioSourcePlayer ?.timeUpdated(_audioElement.currentTime.toDouble()); }.toJS); _audioElement.addEventListener( 'loadstart', - (event) { + (Event event) { transition(ProcessingStateMessage.buffering); }.toJS); _audioElement.addEventListener( 'waiting', - (event) { + (Event event) { transition(ProcessingStateMessage.buffering); }.toJS); _audioElement.addEventListener( 'stalled', - (event) { + (Event event) { transition(ProcessingStateMessage.buffering); }.toJS); _audioElement.addEventListener( 'canplaythrough', - (event) { + (Event event) { _audioElement.playbackRate = _speed; transition(ProcessingStateMessage.ready); }.toJS); _audioElement.addEventListener( 'progress', - (event) { + (Event event) { broadcastPlaybackEvent(); }.toJS); } diff --git a/just_audio_web/pubspec.yaml b/just_audio_web/pubspec.yaml index 70dc4aa0f..269db1b19 100644 --- a/just_audio_web/pubspec.yaml +++ b/just_audio_web/pubspec.yaml @@ -1,7 +1,7 @@ name: just_audio_web description: Web platform implementation of just_audio. This implementation is endorsed and therefore doesn't require a direct dependency. homepage: https://github.com/ryanheise/just_audio/tree/master/just_audio_web -version: 0.4.12 +version: 0.4.13 flutter: plugin: