From 2ec0172741b6c8a7410f0f46d3813b671c1be402 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Sun, 20 Mar 2022 23:59:14 +0600 Subject: [PATCH] Lyrics page asking to add lyrics fix --- lib/components/Lyrics.dart | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/lib/components/Lyrics.dart b/lib/components/Lyrics.dart index aff38848..1e70891c 100644 --- a/lib/components/Lyrics.dart +++ b/lib/components/Lyrics.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; -import 'package:go_router/go_router.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:spotify/spotify.dart'; import 'package:spotube/helpers/artist-to-string.dart'; @@ -50,6 +49,7 @@ class Lyrics extends HookConsumerWidget { if (lyrics.value["lyrics"] != null && playback.currentTrack == null) { lyrics.value = {}; } + return null; }, [ lyricsSnapshot.data, lyricsSnapshot.hasData, @@ -60,25 +60,6 @@ class Lyrics extends HookConsumerWidget { final breakpoint = useBreakpoints(); if (lyrics.value["lyrics"] == null && playback.currentTrack != null) { - if (!hasToken) { - return Expanded( - child: Column( - children: [ - Text( - "Genius lyrics API access token isn't set", - style: Theme.of(context) - .textTheme - .headline4 - ?.copyWith(color: Colors.red[400]), - ), - ElevatedButton( - onPressed: () { - GoRouter.of(context).push("/settings"); - }, - child: const Text("Add Access Token")) - ], - )); - } return const Expanded( child: Center( child: CircularProgressIndicator.adaptive(),