From 9d25e78d24a687c90ffa76f034c418d2bbe45251 Mon Sep 17 00:00:00 2001 From: August Date: Sun, 11 Aug 2024 16:53:40 +0200 Subject: [PATCH] deps: Consider web:1.0.0 (#1828) # Description The package `web` 1.0.0 was released, which cannot be used currently with audioplayers. --- packages/audioplayers_web/lib/wrapped_player.dart | 2 ++ packages/audioplayers_web/pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/audioplayers_web/lib/wrapped_player.dart b/packages/audioplayers_web/lib/wrapped_player.dart index d3f447a0d..e6d0c3e16 100644 --- a/packages/audioplayers_web/lib/wrapped_player.dart +++ b/packages/audioplayers_web/lib/wrapped_player.dart @@ -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(); diff --git a/packages/audioplayers_web/pubspec.yaml b/packages/audioplayers_web/pubspec.yaml index 1a2aa517a..9387e5fc6 100644 --- a/packages/audioplayers_web/pubspec.yaml +++ b/packages/audioplayers_web/pubspec.yaml @@ -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