components/u_music_player
library
Classes
-
UArtwork
-
Album art from a track's artwork reference, with placeholder.
UArtwork(artwork: track.artwork, size: 56)
-
UArtworkCache
-
Memory cache of album art so lists do not decode the same picture twice.
-
UEqualizer
-
Audio equalizer for a player (Android only; available is false elsewhere).
final eq = UEqualizer(UAudio.controller); await eq.setBand(0, 3)
-
UEqualizerBand
-
One equalizer band: center frequency and gain in dB.
-
UEqualizerSheet
-
Bottom sheet with equalizer sliders and presets (Android).
-
UEqualizerState
-
Equalizer state: bands, presets, bass boost, virtualizer, loudness.
-
ULyrics
-
Song lyrics, synced (LRC) or plain.
ULyrics.fromText(lrcText)
-
ULyricsView
-
Scrolling lyrics that highlight the current line; tap a line to seek.
ULyricsView(controller: UAudio.controller, lyrics: lyrics)
-
UMediaQueueSheet
-
Bottom sheet listing the play queue (tap to jump, drag to reorder, swipe to remove).
-
UMiniPlayerBar
-
Slim "now playing" bar with artwork, title and play/pause (put it above your bottom navigation).
UMiniPlayerBar(controller: UAudio.controller, onTap: openPlayer)
-
UMusicPlayer
-
Complete music player UI (artwork, seek bar, controls, queue, lyrics, equalizer, sleep timer); uses UAudio when no controller is given.
UMusicPlayer(layout: UMusicPlayerLayout.card)
-
UMusicPlayerTheme
-
Which parts UMusicPlayer shows and how big they are.
-
UVisualizer
-
Live audio visualizer of a player (real FFT on Android, animated estimate elsewhere).
UVisualizer(controller: UAudio.controller)