mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-15 08:35:18 +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);
|
||||
var lyrics = useState({});
|
||||
|
||||
bool hasToken = (userPreferences.geniusAccessToken != null ||
|
||||
(userPreferences.geniusAccessToken.isNotEmpty));
|
||||
bool hasToken = userPreferences.geniusAccessToken.isNotEmpty;
|
||||
var lyricsFuture = useMemoized(() {
|
||||
if (playback.currentTrack == null ||
|
||||
!hasToken ||
|
||||
|
@ -140,10 +140,13 @@ class Settings extends HookConsumerWidget {
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
if (auth.isAnonymous)
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
Wrap(
|
||||
alignment: WrapAlignment.spaceBetween,
|
||||
runAlignment: WrapAlignment.center,
|
||||
crossAxisAlignment: WrapCrossAlignment.center,
|
||||
children: [
|
||||
const Text("Login with your Spotify"),
|
||||
const Text("Login with your Spotify account"),
|
||||
const SizedBox(width: 20),
|
||||
ElevatedButton(
|
||||
child: Text("Connect with Spotify".toUpperCase()),
|
||||
onPressed: () {
|
||||
|
Loading…
Reference in New Issue
Block a user