mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
Settings & PlayerControls adjusted for ultrawide/4k screens
This commit is contained in:
parent
a7b3073539
commit
d2b4a81029
@ -131,7 +131,7 @@ class Player extends HookConsumerWidget {
|
||||
children: [
|
||||
Expanded(child: PlayerTrackDetails(albumArt: albumArt)),
|
||||
// controls
|
||||
Expanded(
|
||||
Flexible(
|
||||
flex: 3,
|
||||
child: PlayerControls(),
|
||||
),
|
||||
|
@ -43,7 +43,7 @@ class PlayerControls extends HookConsumerWidget {
|
||||
final duration = _duration.value ?? Duration.zero;
|
||||
|
||||
return Container(
|
||||
constraints: const BoxConstraints(maxWidth: 700),
|
||||
constraints: const BoxConstraints(maxWidth: 600),
|
||||
child: Column(
|
||||
children: [
|
||||
StreamBuilder<Duration>(
|
||||
|
@ -42,7 +42,13 @@ class Settings extends HookConsumerWidget {
|
||||
style: Theme.of(context).textTheme.headline5,
|
||||
),
|
||||
),
|
||||
body: Padding(
|
||||
body: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Flexible(
|
||||
child: Container(
|
||||
constraints: const BoxConstraints(maxWidth: 1366),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Column(
|
||||
children: [
|
||||
@ -161,7 +167,8 @@ class Settings extends HookConsumerWidget {
|
||||
.toList(),
|
||||
onChanged: (value) {
|
||||
if (value == null) return;
|
||||
preferences.setRecommendationMarket(value as String);
|
||||
preferences
|
||||
.setRecommendationMarket(value as String);
|
||||
},
|
||||
),
|
||||
],
|
||||
@ -283,6 +290,10 @@ class Settings extends HookConsumerWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ void main() async {
|
||||
appWindow.size = const Size(900, 700);
|
||||
appWindow.alignment = Alignment.center;
|
||||
appWindow.maximize();
|
||||
appWindow.title = "Spotube";
|
||||
appWindow.show();
|
||||
});
|
||||
}
|
||||
|
@ -118,6 +118,7 @@ class UserPreferences extends ChangeNotifier {
|
||||
void setRecommendationMarket(String country) {
|
||||
recommendationMarket = country;
|
||||
localStorage?.setString(LocalStorageKeys.recommendationMarket, country);
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void setGeniusAccessToken(String token) {
|
||||
|
Loading…
Reference in New Issue
Block a user