bluefireteam / audioplayers

A Flutter package to play multiple audio files simultaneously (Android/iOS/web/Linux/Windows/macOS)
https://pub.dartlang.org/packages/audioplayers
MIT License
2.01k stars 845 forks source link

Snackbar disabling audio event handlers #1789

Closed syleishere closed 7 months ago

syleishere commented 7 months ago

Checklist

Current bug behaviour

Displaying Snackbar to display current playing song while using audio package disables all audio event handlers. I have tried putting snackbar different places to avoid this behavior, including on_loaded, on_position, on_duration and just normal button click to play a song, same effect

Expected behaviour

Snackbar should not be disabling audio packages event handlers

Steps to reproduce

  1. Execute flutter run on the code sample
  2. ...
  3. ...

Code sample

Code sample ```dart void main() { } ```

Affected platforms

Android, iOS, web, Windows, Linux, macOS, other

Platform details

This is happening on all platforms, I have tested on windows and the web currently, but I'm sure its happening everywhere.

AudioPlayers Version

tested with latest version, sure it happens on all of them

Build mode

No response

Audio Files/URLs/Sources

No response

Screenshots

No response

Logs

my relevant logs
Full Logs ``` my full logs or a link to a gist ``` Flutter doctor: ``` Output of: flutter doctor -v ```

Related issues / more information

No response

Working on PR

no way

syleishere commented 7 months ago

this was meant for flet, closing this