基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
fix mobile switch episode when portrait will break comments
ErBW_s52ac282b790e
diff --git a/lib/pages/player/episode_comments_sheet.dart b/lib/pages/player/episode_comments_sheet.dartindex f34bd49a..226f718d 100644--- a/lib/pages/player/episode_comments_sheet.dart+++ b/lib/pages/player/episode_comments_sheet.dart@@ -21,17 +21,6 @@ class _EpisodeCommentsSheetState extends State<EpisodeCommentsSheet>bool isLoading = false;bool commentsQueryTimeout = false;- @override- void initState() {- super.initState();- if (infoController.episodeCommentsList.isEmpty) {- setState(() {- isLoading = true;- });- loadComments(widget.episode);- }- }-Future<void> loadComments(int episode) async {commentsQueryTimeout = false;infoController@@ -57,6 +46,12 @@ class _EpisodeCommentsSheetState extends State<EpisodeCommentsSheet>}Widget get episodeCommentsBody {+ if (infoController.episodeCommentsList.isEmpty) {+ setState(() {+ isLoading = true;+ });+ loadComments(widget.episode);+ }return CustomScrollView(// Scrollbars' movement is not linear so hide it.scrollBehavior: const ScrollBehavior().copyWith(scrollbars: false),