Minor change.
This commit is contained in:
parent
67d57c5334
commit
24861bf588
|
@ -454,7 +454,8 @@ class AudioPlayerNotifier extends ChangeNotifier {
|
|||
await _positionStorage.saveInt(_lastPostion);
|
||||
var history;
|
||||
if (_markListened) {
|
||||
history = PlayHistory(_episode.title, _episode.enclosureUrl, 0, 1);
|
||||
history = PlayHistory(_episode.title, _episode.enclosureUrl,
|
||||
_backgroundAudioPosition ~/ 1000, 1);
|
||||
} else {
|
||||
history = PlayHistory(_episode.title, _episode.enclosureUrl,
|
||||
_backgroundAudioPosition ~/ 1000, _seekSliderValue);
|
||||
|
|
|
@ -22,6 +22,7 @@ class MultiSelectMenuBar extends StatefulWidget {
|
|||
this.onClose,
|
||||
this.onSelectAfter,
|
||||
this.onSelectBefore,
|
||||
this.hideFavorite = false,
|
||||
Key key})
|
||||
: assert(onClose != null),
|
||||
super(key: key);
|
||||
|
@ -31,6 +32,7 @@ class MultiSelectMenuBar extends StatefulWidget {
|
|||
final ValueChanged<bool> onClose;
|
||||
final ValueChanged<bool> onSelectBefore;
|
||||
final ValueChanged<bool> onSelectAfter;
|
||||
final bool hideFavorite;
|
||||
|
||||
@override
|
||||
_MultiSelectMenuBarState createState() => _MultiSelectMenuBarState();
|
||||
|
@ -296,6 +298,7 @@ class _MultiSelectMenuBarState extends State<MultiSelectMenuBar> {
|
|||
),
|
||||
Row(
|
||||
children: [
|
||||
if (!widget.hideFavorite)
|
||||
_buttonOnMenu(
|
||||
child: _liked
|
||||
? Icon(Icons.favorite, color: Colors.red)
|
||||
|
|
Loading…
Reference in New Issue