chore(player-controls): add bottom space to life up player control buttons

This commit is contained in:
Kingkor Roy Tirtho 2022-09-13 09:53:38 +06:00
parent d5ff927c72
commit 74d56792c6

View File

@ -49,7 +49,8 @@ class PlayerControls extends HookConsumerWidget {
final sliderMax = duration.inSeconds;
final sliderValue = snapshot.data?.inSeconds ?? 0;
return HookBuilder(builder: (context) {
return HookBuilder(
builder: (context) {
final progressStatic =
(sliderMax == 0 || sliderValue > sliderMax)
? 0
@ -84,7 +85,9 @@ class PlayerControls extends HookConsumerWidget {
activeColor: iconColor,
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
padding: const EdgeInsets.symmetric(
horizontal: 8.0,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
@ -97,8 +100,10 @@ class PlayerControls extends HookConsumerWidget {
),
],
);
});
}),
},
);
},
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
@ -122,7 +127,11 @@ class PlayerControls extends HookConsumerWidget {
}),
IconButton(
icon: playback.status == PlaybackStatus.loading
? const CircularProgressIndicator()
? const SizedBox(
height: 20,
width: 20,
child: CircularProgressIndicator(),
)
: Icon(
playback.isPlaying
? Icons.pause_rounded
@ -151,6 +160,7 @@ class PlayerControls extends HookConsumerWidget {
)
],
),
const SizedBox(height: 5)
],
));
}