Polish navigation, Quran flows, and sharing UX
This commit is contained in:
11
lib/core/services/app_audio_player.dart
Normal file
11
lib/core/services/app_audio_player.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import 'package:just_audio/just_audio.dart';
|
||||
|
||||
/// Shared app-wide audio player.
|
||||
///
|
||||
/// `just_audio_background` supports only one `AudioPlayer` instance, so all
|
||||
/// playback surfaces should reuse this singleton.
|
||||
class AppAudioPlayer {
|
||||
AppAudioPlayer._();
|
||||
|
||||
static final AudioPlayer instance = AudioPlayer();
|
||||
}
|
||||
Reference in New Issue
Block a user