Merge branch 'bugfix/displaySubtitle' of kilowatt36/freezer into master

This commit is contained in:
exttex 2020-11-01 15:37:10 +00:00 committed by Gogs
commit 07819f203d
2 changed files with 3 additions and 3 deletions

View file

@ -70,7 +70,7 @@ class PlayerBar extends StatelessWidget {
maxLines: 1,
),
subtitle: Text(
AudioService.currentMediaItem.displaySubtitle,
AudioService.currentMediaItem.displaySubtitle ?? '',
overflow: TextOverflow.clip,
maxLines: 1,
),

View file

@ -152,7 +152,7 @@ class _PlayerScreenHorizontalState extends State<PlayerScreenHorizontal> {
),
Container(height: 4,),
Text(
AudioService.currentMediaItem.displaySubtitle,
AudioService.currentMediaItem.displaySubtitle ?? '',
maxLines: 1,
textAlign: TextAlign.center,
overflow: TextOverflow.clip,
@ -280,7 +280,7 @@ class _PlayerScreenVerticalState extends State<PlayerScreenVertical> {
),
Container(height: 4,),
Text(
AudioService.currentMediaItem.displaySubtitle,
AudioService.currentMediaItem.displaySubtitle ?? '',
maxLines: 1,
textAlign: TextAlign.center,
overflow: TextOverflow.clip,