mirror of
https://github.com/stonega/tsacdop
synced 2025-02-20 05:20:41 +01:00
Fix listennotes search error.
This commit is contained in:
parent
109c83eb9f
commit
085eb1d78e
@ -407,8 +407,8 @@ class _ListenNotesSearch extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class __ListenNotesSearchState extends State<_ListenNotesSearch> {
|
class __ListenNotesSearchState extends State<_ListenNotesSearch> {
|
||||||
int _nextOffset = 0;
|
|
||||||
final List<OnlinePodcast> _podcastList = [];
|
final List<OnlinePodcast> _podcastList = [];
|
||||||
|
int _nextOffset = 0;
|
||||||
int _offset;
|
int _offset;
|
||||||
bool _loading = false;
|
bool _loading = false;
|
||||||
bool _loadError = false;
|
bool _loadError = false;
|
||||||
@ -446,7 +446,8 @@ class __ListenNotesSearchState extends State<_ListenNotesSearch> {
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
_offset = searchResult.nextOffset;
|
_offset = searchResult.nextOffset;
|
||||||
_podcastList.addAll(searchResult.results.cast());
|
var searchList = <OnlinePodcast>[...searchResult.results.cast().toList()];
|
||||||
|
_podcastList.addAll(searchList);
|
||||||
_loading = false;
|
_loading = false;
|
||||||
return _podcastList;
|
return _podcastList;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user