opt: LoadingState (#1776)

This commit is contained in:
My-Responsitories
2025-12-13 12:43:32 +08:00
committed by GitHub
parent 3741fe54ff
commit 17883eb77e
82 changed files with 832 additions and 887 deletions

View File

@@ -584,11 +584,11 @@ class _EpisodePanelState extends State<EpisodePanel>
isFav: response,
seasonId: widget.seasonId,
);
if (result['status']) {
if (result.isSuccess) {
SmartDialog.showToast('${response ? '取消' : ''}订阅成功');
_favState!.value = Success(!response);
} else {
SmartDialog.showToast(result['msg']);
result.toast();
}
},
),