Skip to content

Commit

Permalink
Revert lyrics_screen and music_player_background_task to redesign branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich T committed Sep 2, 2024
1 parent dacc5f8 commit 5b6a90f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 1 addition & 5 deletions lib/screens/lyrics_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ class _LyricsScreenContent extends StatefulWidget {
}

class _LyricsScreenContentState extends State<_LyricsScreenContent> {
@override
void dispose() {
super.dispose();
}

@override
Widget build(BuildContext context) {
double toolbarHeight = 53;
Expand Down Expand Up @@ -239,6 +234,7 @@ class _LyricsViewState extends ConsumerState<LyricsView>

@override
Widget build(BuildContext context) {

final audioHandler = GetIt.instance<MusicPlayerBackgroundTask>();

final metadata = ref.watch(currentTrackMetadataProvider).unwrapPrevious();
Expand Down
4 changes: 1 addition & 3 deletions lib/services/music_player_background_task.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,7 @@ class MusicPlayerBackgroundTask extends BaseAudioHandler {
}

@override
Future<void> pause() {
return _player.pause();
}
Future<void> pause() => _player.pause();

Future<void> togglePlayback() {
if (_player.playing) {
Expand Down

0 comments on commit 5b6a90f

Please sign in to comment.