From 9b31f722965d90ffb43f2a3f49482e6421003789 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 15 Mar 2020 11:47:35 +0100 Subject: [PATCH] Fix design --- lib/components/audio_player.dart | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/components/audio_player.dart b/lib/components/audio_player.dart index 8087afa..881735a 100644 --- a/lib/components/audio_player.dart +++ b/lib/components/audio_player.dart @@ -102,9 +102,9 @@ class _AudioPlayerState extends State { mainAxisSize: MainAxisSize.min, children: [ Container( - width: 40, + width: 30, child: status == AudioPlayerStatus.DOWNLOADING - ? CircularProgressIndicator() + ? CircularProgressIndicator(strokeWidth: 2) : IconButton( icon: Icon( flutterSound.audioState == t_AUDIO_STATE.IS_PLAYING @@ -121,12 +121,14 @@ class _AudioPlayerState extends State { }, ), ), - Slider( - value: currentPosition, - onChanged: (double position) => - flutterSound.seekToPlayer(position.toInt()), - max: status == AudioPlayerStatus.DOWNLOADED ? maxPosition : 0, - min: 0, + Expanded( + child: Slider( + value: currentPosition, + onChanged: (double position) => + flutterSound.seekToPlayer(position.toInt()), + max: status == AudioPlayerStatus.DOWNLOADED ? maxPosition : 0, + min: 0, + ), ), Text( statusText,