Minor ui fix,

This commit is contained in:
stonega 2021-02-11 13:02:39 +08:00
parent c16729763a
commit 26e74d34e5
3 changed files with 9 additions and 10 deletions

View File

@ -257,8 +257,6 @@ class _EpisodeDetailState extends State<EpisodeDetail> {
SizedBox(width: 5), SizedBox(width: 5),
Text( Text(
snapshot.data.seconds.toTime, snapshot.data.seconds.toTime,
style: TextStyle(
color: Colors.black),
), ),
], ],
), ),

View File

@ -63,8 +63,7 @@ class PlayerWidget extends StatelessWidget {
child: child:
Column(mainAxisAlignment: MainAxisAlignment.start, children: <Widget>[ Column(mainAxisAlignment: MainAxisAlignment.start, children: <Widget>[
Selector<AudioPlayerNotifier, Tuple2<EpisodeBrief, double>>( Selector<AudioPlayerNotifier, Tuple2<EpisodeBrief, double>>(
selector: (_, audio) => selector: (_, audio) => Tuple2(audio.episode, audio.seekSliderValue),
Tuple2(audio.episode, audio.seekSliderValue),
builder: (_, data, __) { builder: (_, data, __) {
final c = data.item1.backgroudColor(context); final c = data.item1.backgroudColor(context);
return SizedBox( return SizedBox(
@ -964,7 +963,6 @@ class _ChaptersWidgetState extends State<ChaptersWidget> {
SizedBox(width: 5), SizedBox(width: 5),
Text( Text(
chapters.startTime.toTime, chapters.startTime.toTime,
style: TextStyle(color: Colors.black),
), ),
], ],
), ),

View File

@ -333,11 +333,14 @@ class __QueueState extends State<_Queue> {
key: ValueKey(episode.enclosureUrl), key: ValueKey(episode.enclosureUrl),
); );
} else { } else {
return EpisodeCard(episode, return Padding(
key: ValueKey('playing'), padding: const EdgeInsets.symmetric(horizontal: 10),
isPlaying: true, child: EpisodeCard(episode,
canReorder: true, key: ValueKey('playing'),
tileColor: context.primaryColorDark); isPlaying: true,
canReorder: true,
tileColor: context.primaryColorDark),
);
} }
}).toList() }).toList()
: episodes : episodes