mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-15 16:45:17 +00:00
fixed button overflow issue
This commit is contained in:
parent
b4e79ce7ff
commit
f6969d678a
@ -17,8 +17,7 @@ class Lyrics extends HookConsumerWidget {
|
|||||||
UserPreferences userPreferences = ref.watch(userPreferencesProvider);
|
UserPreferences userPreferences = ref.watch(userPreferencesProvider);
|
||||||
var lyrics = useState({});
|
var lyrics = useState({});
|
||||||
|
|
||||||
bool hasToken = (userPreferences.geniusAccessToken != null ||
|
bool hasToken = userPreferences.geniusAccessToken.isNotEmpty;
|
||||||
(userPreferences.geniusAccessToken.isNotEmpty));
|
|
||||||
var lyricsFuture = useMemoized(() {
|
var lyricsFuture = useMemoized(() {
|
||||||
if (playback.currentTrack == null ||
|
if (playback.currentTrack == null ||
|
||||||
!hasToken ||
|
!hasToken ||
|
||||||
|
@ -140,10 +140,13 @@ class Settings extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
if (auth.isAnonymous)
|
if (auth.isAnonymous)
|
||||||
Row(
|
Wrap(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
alignment: WrapAlignment.spaceBetween,
|
||||||
|
runAlignment: WrapAlignment.center,
|
||||||
|
crossAxisAlignment: WrapCrossAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
const Text("Login with your Spotify"),
|
const Text("Login with your Spotify account"),
|
||||||
|
const SizedBox(width: 20),
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
child: Text("Connect with Spotify".toUpperCase()),
|
child: Text("Connect with Spotify".toUpperCase()),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
Loading…
Reference in New Issue
Block a user