1
1
import 'package:flutter/material.dart' ;
2
2
import 'package:provider/provider.dart' ;
3
- import '../../data.dart' ;
4
- import '../l10n/l10n.dart' ;
5
3
import 'package:yaru_widgets/yaru_widgets.dart' ;
6
4
7
- import 'player_model.dart' ;
5
+ import '../../data.dart' ;
6
+ import '../../player.dart' ;
7
+ import '../l10n/l10n.dart' ;
8
8
9
9
class UpNextBubble extends StatelessWidget {
10
10
const UpNextBubble ({
@@ -42,7 +42,7 @@ class UpNextBubble extends StatelessWidget {
42
42
right: 10 ,
43
43
),
44
44
child: Text (
45
- context.l10n.upNext,
45
+ isUpNextExpanded ? context.l10n.queue : context.l10n.upNext,
46
46
style: theme.textTheme.labelSmall,
47
47
),
48
48
),
@@ -58,7 +58,7 @@ class UpNextBubble extends StatelessWidget {
58
58
right: 10 ,
59
59
),
60
60
child: Text (
61
- '${ e . title ?? '' } • ${ e . artist ?? '' }' ,
61
+ createQueueElement (e) ,
62
62
style: theme.textTheme.labelMedium? .copyWith (
63
63
color: theme.colorScheme.onSurface,
64
64
fontWeight: e == audio
@@ -79,7 +79,7 @@ class UpNextBubble extends StatelessWidget {
79
79
bottom: 10 ,
80
80
),
81
81
child: Text (
82
- '${ nextAudio !. title !} • ${ nextAudio ?. artist !}' ,
82
+ createQueueElement ( nextAudio) ,
83
83
style: theme.textTheme.labelMedium
84
84
? .copyWith (color: theme.colorScheme.onSurface),
85
85
overflow: TextOverflow .ellipsis,
0 commit comments