Change playlist animation in player widget.
This commit is contained in:
parent
22f9eef8f9
commit
d0b7c39efd
|
@ -558,13 +558,15 @@ class _PlaylistWidgetState extends State<PlaylistWidget> {
|
||||||
episodesToPlay.insert(0, episdoe);
|
episodesToPlay.insert(0, episdoe);
|
||||||
miniPlaylistKey.currentState.removeItem(
|
miniPlaylistKey.currentState.removeItem(
|
||||||
index,
|
index,
|
||||||
(context, animation) => Center(),
|
(context, animation) {
|
||||||
duration: Duration(milliseconds: 200),
|
return Center();
|
||||||
|
},
|
||||||
|
duration: Duration.zero,
|
||||||
);
|
);
|
||||||
miniPlaylistKey.currentState.insertItem(0,
|
miniPlaylistKey.currentState.insertItem(0,
|
||||||
duration: Duration(milliseconds: 100));
|
duration: Duration(milliseconds: 100));
|
||||||
await Future.delayed(
|
await Future.delayed(
|
||||||
Duration(milliseconds: 300));
|
Duration(milliseconds: 100));
|
||||||
await audio
|
await audio
|
||||||
.moveToTop(data.item1[index + 1]);
|
.moveToTop(data.item1[index + 1]);
|
||||||
},
|
},
|
||||||
|
@ -1389,7 +1391,7 @@ class _ControlPanelState extends State<ControlPanel>
|
||||||
width: 100,
|
width: 100,
|
||||||
child: Text(
|
child: Text(
|
||||||
data.item1.feedTitle,
|
data.item1.feedTitle,
|
||||||
maxLines: 2,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.fade,
|
overflow: TextOverflow.fade,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue