Skip to content

Commit

Permalink
deps: Consider web:1.0.0 (#1828)
Browse files Browse the repository at this point in the history
# Description

The package `web` 1.0.0 was released, which cannot be used currently
with audioplayers.
  • Loading branch information
Gustl22 authored Aug 11, 2024
1 parent 9cc187e commit 9d25e78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/audioplayers_web/lib/wrapped_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ class WrappedPlayer {
}

void pause() {
// TODO(Gustl22): remove ignore, when web >= 1.0.0
// ignore: unnecessary_cast
_pausedAt = player?.currentTime as double?;
_isPlaying = false;
player?.pause();
Expand Down
2 changes: 1 addition & 1 deletion packages/audioplayers_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
sdk: flutter
flutter_web_plugins:
sdk: flutter
web: ^0.5.1
web: '>=0.5.1 <2.0.0'

dev_dependencies:
flame_lint: ^1.0.0
Expand Down

0 comments on commit 9d25e78

Please sign in to comment.