opt: reply error widget

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-11 18:53:59 +08:00
parent 9b8b9bd1ab
commit 4075978dc4
6 changed files with 43 additions and 54 deletions

View File

@@ -297,13 +297,11 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
errMsg: '还没有评论',
callback: _videoReplyController.onReload,
),
Error() => HttpError(
errMsg: loadingState.errMsg,
callback: _videoReplyController.onReload,
extraWidget: loadingState.errMsg.startsWith('gRPC Error') &&
GlobalData().grpcReply
? grpcReplyErrorWidget(context, _videoReplyController.onReload)
: null,
Error() => replyErrorWidget(
context,
true,
loadingState.errMsg,
_videoReplyController.onReload,
),
LoadingState() => throw UnimplementedError(),
};