From cbc46db4690b89d2d5e983821d269931a358e508 Mon Sep 17 00:00:00 2001 From: Dominik Wawrzonek Date: Fri, 2 Aug 2024 15:15:05 +0200 Subject: Fixed issue with shuffle and loop icons in music player screen Added SingleChildScrollView wrapped by Expanded widget to prevent overflow long songDetial text. Hidden text can be seen after horizontal gesture scroll. Bug-AGL: SPEC-5206 Change-Id: I439517bfdf151cd66b75a4f3eb7f1d14978d6010 Signed-off-by: Dominik Wawrzonek (cherry picked from commit 52efc5aa4cc90562da2ad168665d1f1229ad6794) --- .../screens/media/media_player_controls.dart | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'lib/presentation') diff --git a/lib/presentation/screens/media/media_player_controls.dart b/lib/presentation/screens/media/media_player_controls.dart index 26cdfce..f23bcc9 100644 --- a/lib/presentation/screens/media/media_player_controls.dart +++ b/lib/presentation/screens/media/media_player_controls.dart @@ -107,13 +107,18 @@ class _MediaPlayerControlsDetailsState return Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - Text( - widget.songDetail, - style: TextStyle( - color: Colors.white, - fontWeight: FontWeight.w400, - fontSize: 40, - shadows: [Helpers.dropShadowRegular]), + Expanded( + child: SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: Text( + widget.songDetail, + style: TextStyle( + color: Colors.white, + fontWeight: FontWeight.w400, + fontSize: 40, + shadows: [Helpers.dropShadowRegular]), + ), + ), ), Row( children: [ -- cgit 1.2.3-korg