mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
chore(player-controls): add bottom space to life up player control buttons
This commit is contained in:
parent
d5ff927c72
commit
74d56792c6
@ -49,7 +49,8 @@ class PlayerControls extends HookConsumerWidget {
|
|||||||
final sliderMax = duration.inSeconds;
|
final sliderMax = duration.inSeconds;
|
||||||
final sliderValue = snapshot.data?.inSeconds ?? 0;
|
final sliderValue = snapshot.data?.inSeconds ?? 0;
|
||||||
|
|
||||||
return HookBuilder(builder: (context) {
|
return HookBuilder(
|
||||||
|
builder: (context) {
|
||||||
final progressStatic =
|
final progressStatic =
|
||||||
(sliderMax == 0 || sliderValue > sliderMax)
|
(sliderMax == 0 || sliderValue > sliderMax)
|
||||||
? 0
|
? 0
|
||||||
@ -84,7 +85,9 @@ class PlayerControls extends HookConsumerWidget {
|
|||||||
activeColor: iconColor,
|
activeColor: iconColor,
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 8.0,
|
||||||
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
@ -97,8 +100,10 @@ class PlayerControls extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
});
|
},
|
||||||
}),
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
children: [
|
children: [
|
||||||
@ -122,7 +127,11 @@ class PlayerControls extends HookConsumerWidget {
|
|||||||
}),
|
}),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: playback.status == PlaybackStatus.loading
|
icon: playback.status == PlaybackStatus.loading
|
||||||
? const CircularProgressIndicator()
|
? const SizedBox(
|
||||||
|
height: 20,
|
||||||
|
width: 20,
|
||||||
|
child: CircularProgressIndicator(),
|
||||||
|
)
|
||||||
: Icon(
|
: Icon(
|
||||||
playback.isPlaying
|
playback.isPlaying
|
||||||
? Icons.pause_rounded
|
? Icons.pause_rounded
|
||||||
@ -151,6 +160,7 @@ class PlayerControls extends HookConsumerWidget {
|
|||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
const SizedBox(height: 5)
|
||||||
],
|
],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user